Codeunit 9856 Permission Set Relation Impl.

System Application, System.Security.AccessControl

Source AL, 480 lines

src/System Application/App/Permission Sets/src/PermissionSetRelationImpl.Codeunit.allines 15 to 30 of 480, Copyright (c) Microsoft Corporation. MIT

codeunit 9856 "Permission Set Relation Impl."{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        TempPermissionSetRelationBufferList: Record "Permission Set Relation Buffer" temporary;        TempPermissionSetRelationBufferTree: Record "Permission Set Relation Buffer" temporary;        FeatureTelemetry: Codeunit "Feature Telemetry";        PermissionTypeOption: Option Include,Exclude;        CannotChangeExtensionPermissionErr: Label 'You cannot change permissions sets of type Extension.';        CannotManagePermissionsErr: Label 'Only users with the SUPER or the SECURITY permission set can create or edit permission sets.';        CannotIncludeItselfErr: Label 'You cannot include the permission set you are currently modifying.';        CannotExcludeItselfErr: Label 'You cannot exclude the permission set you are currently modifying.';        PermissionSetAlreadyIncludedErr: Label 'The %1 permission set is already included.', Comment = '%1 - the role ID of the permission set';

All 480 lines

Public procedures 18 in 29

AddPermissionSetRelationBufferList(var PermissionSetRelationBuffer: Record "Permission Set Relation Buffer" temporary)new in 21
AddPermissionSetRelationBufferTree(var PermissionSetRelationBuffer: Record "Permission Set Relation Buffer" temporary)new in 21
OpenPermissionSetPage(Name: Text; RoleId: Code[30]; AppId: Guid; Scope: Option System,Tenant)new in 21
VerifyUserCanEditPermissionSet(AppID: Guid)new in 21
SelectPermissionSets(CurrAppId: Guid; CurrRoleID: Code[30]; CurrScope: Option System,Tenant): Booleannew in 21
AddNewPermissionSetRelation(CurrAppId: Guid; CurrRoleID: Code[30]; CurrScope: Option System,Tenant; RelatedAppId: Guid; RelatedRoleId: Code[30]; RelatedScope: Option System,Tenant; PermissionType: Option Include,Exclude): Booleannew in 21

All 19 procedures in 21-29

Changes 4 in 23

List17181920212223242526272829
Procedures14
LookupPermissionSet(AllowMultiselect: Boolean; var AggregatePermissionSet: Record "Aggregate Permission Set"): Boolean22 to 22
gone
GetPermissionSets(var PermissionSetBuffer: Record "PermissionSet Buffer")new in 23
added
LookupAllPermissionSets(AllowMultiselect: Boolean; var PermissionSetBuffer: Record "PermissionSet Buffer"): Booleannew in 23
added
LookupAssignablePermissionSets(AllowMultiselect: Boolean; var AggregatePermissionSet: Record "Aggregate Permission Set"): Booleannew in 23
added

All 5 changes in 21-29