Codeunit 9852 Effective Permissions Mgt.

Base Application, System.Security.AccessControl

Source AL, 924 lines

src/Layers/W1/BaseApp/System/Permissions/EffectivePermissionsMgt.Codeunit.allines 11 to 26 of 924, Copyright (c) Microsoft Corporation. MIT

codeunit 9852 "Effective Permissions Mgt."{    trigger OnRun()    begin    end;    var        UserAccountHelper: DotNet NavUserAccountHelper;        AccessControlFilterForUserCache: Dictionary of [Guid, Text];        DialogFormatMsg: Label 'Reading objects...@1@@@@@@@@@@@@@@@@@@';        CannotViewEffectivePermissionsForOtherUserErr: Label 'Only users with the SUPER or the SECURITY permission set can view effective permissions for other users.';        ChangeAffectsOthersMsg: Label 'Your change in permission set %1 will affect other users that the permission set is assigned to.', Comment = '%1 = permission set ID that was changed';        ChangeAffectsOthersNameTxt: Label 'Changing permission sets for other users';        ChangeAffectsOthersDescTxt: Label 'Show a warning when changing a permission set that is assigned to other users.';        DirectConflictWithIndirectMsg: Label 'This user has been given the Yes permission for the selected object, but their license allows them only the Indirect permission.';

All 924 lines

Events 1 in 29

[IntegrationEvent] OnTenantPermissionModified(PermissionSetId: Code[20])17-29

Public procedures 11 in 29

OpenPageForUser(UserSID: Guid)17-29
PopulatePermissionBuffer(var PermissionBuffer: Record "Permission Buffer"; PassedUserID: Guid; PassedCompanyName: Text[50]; PassedObjectType: Integer; PassedObjectId: Integer)17-29
PopulateEffectivePermissionsBuffer(var Permission: Record Permission; PassedUserID: Guid; PassedCompanyName: Text[50]; PassedObjectType: Integer; PassedObjectId: Integer; ShowAllObjects: Boolean)17-29
PopulatePermissionRecordWithEffectivePermissionsForObject(var Permission: Record Permission; PassedUserID: Guid; PassedCompanyName: Text[50]; PassedObjectType: Option; PassedObjectId: Integer)17-29
ModifyPermission(FieldNumChanged: Integer; PermissionBuffer: Record "Permission Buffer"; PassedObjectType: Integer; PassedObjectId: Integer; PassedUserID: Guid)17-29
NotificationShowUsers(Notification: Notification)17-29

All 18 procedures in 17-29

Changes 1 in 26

List17181920212223242526272829
Procedures1211
PopulatePermissionBufferWithEntitlementPermissionsForObject(var PermissionBuffer: Record "Permission Buffer"; PassedUserID: Guid; PassedObjectType: Option; PassedObjectId: Integer)new in 26
added

All 5 changes in 17-29