Skip to main content
Version: Next

PermissionsRegistryService.addPermissionRules()

Home > @backstage/backend-plugin-api > PermissionsRegistryService > addPermissionRules

Adds a set of permission rules to the permission system for a resource type that is owned by this plugin.

Signature:

addPermissionRules(rules: PermissionRule<any, any, string>[]): void;

Parameters

Parameter

Type

Description

rules

PermissionRule<any, any, string>[]

**Returns:**

void

Remarks

Rules should be created using corresponding create*PermissionRule functions exported by plugins, who in turn are created with makeCreatePermissionRule.

Rules can be added either directly by the plugin itself or through a plugin module.