Codeunit "Permission Set Relation"
Codeunit that provides functions for permission set relations, such as including and exlcuding permission sets.
Properties
| Name | Value |
|---|---|
| Access | Public |
Methods
AddNewPermissionSetRelation
Adds a new permission set relation.
procedure AddNewPermissionSetRelation(AppId: Guid, RoleId: Code[30], Scope: Option, RelatedAppId: Guid, RelatedRoleId: Code[30], RelatedScope: Option, PermissionType: Option): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| AppId | Guid |
The app ID of the permission set. |
| RoleId | Code[30] |
The role ID of the permission set. |
| Scope | Option |
The scope of the permission set. |
| RelatedAppId | Guid |
The app ID of the related permission set. |
| RelatedRoleId | Code[30] |
The role ID of the related permission set. |
| RelatedScope | Option |
The scope of the related permission set. |
| PermissionType | Option |
The type of the new permission set relation. |
Returns
| Type | Description |
|---|---|
| Boolean |
true if creating the permission set relation was successful |
OpenPermissionSetPage
Opens the permission set page for the specified role ID.
procedure OpenPermissionSetPage(Name: Text, RoleId: Code[30], AppId: Guid, Scope: Option)
Parameters
| Name | Type | Description |
|---|---|---|
| Name | Text |
The name of the permission set to open. |
| RoleId | Code[30] |
The role ID of the permission set to open. |
| AppId | Guid |
The app ID of the permission set to open. |
| Scope | Option |
The scope of the permission set to open. |
VerifyUserCanEditPermissionSet
Verify that the user can edit permission sets, with the specified app ID. Throws an error if not.
procedure VerifyUserCanEditPermissionSet(AppId: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| AppId | Text |
The app ID of the permission set to verify. |
LookupPermissionSet
procedure LookupPermissionSet(AllowMultiselect: Boolean, AggregatePermissionSet: __MissingTypeSymbol__): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| AllowMultiselect | Boolean | |
| AggregatePermissionSet | __MissingTypeSymbol__ |
Returns
| Type | Description |
|---|---|
| Boolean |