Codeunit "Effective Permissions Mgt."

ID 9852
Namespace: System.Security.AccessControl

Methods

OpenPageForUser

procedure OpenPageForUser(UserSID: Guid)

Parameters

Name Type Description
UserSID Guid

DisallowViewingEffectivePermissionsForNonAdminUsers

procedure DisallowViewingEffectivePermissionsForNonAdminUsers(OtherUserSecurityId: Guid)

Parameters

Name Type Description
OtherUserSecurityId Guid

PopulatePermissionBuffer

procedure PopulatePermissionBuffer(var PermissionBuffer: Record "Permission Buffer" temporary, PassedUserID: Guid, PassedCompanyName: Text[50], PassedObjectType: Integer, PassedObjectId: Integer)

Parameters

Name Type Description
PermissionBuffer Table System.Security.AccessControl."Permission Buffer"
PassedUserID Guid
PassedCompanyName Text[50]
PassedObjectType Integer
PassedObjectId Integer

PopulatePermissionBufferWithEntitlementPermissionsForObject

procedure PopulatePermissionBufferWithEntitlementPermissionsForObject(var PermissionBuffer: Record "Permission Buffer" temporary, PassedUserID: Guid, PassedObjectType: Option, PassedObjectId: Integer)

Parameters

Name Type Description
PermissionBuffer Table System.Security.AccessControl."Permission Buffer"
PassedUserID Guid
PassedObjectType Option
PassedObjectId Integer

PopulateEffectivePermissionsBuffer

procedure PopulateEffectivePermissionsBuffer(var Permission: Record Permission, PassedUserID: Guid, PassedCompanyName: Text[50], PassedObjectType: Integer, PassedObjectId: Integer, ShowAllObjects: Boolean)

Parameters

Name Type Description
Permission Table System.Security.AccessControl.Permission
PassedUserID Guid
PassedCompanyName Text[50]
PassedObjectType Integer
PassedObjectId Integer
ShowAllObjects Boolean

PopulatePermissionRecordWithEffectivePermissionsForObject

procedure PopulatePermissionRecordWithEffectivePermissionsForObject(var Permission: Record Permission, PassedUserID: Guid, PassedCompanyName: Text[50], PassedObjectType: Option, PassedObjectId: Integer)

Parameters

Name Type Description
Permission Table System.Security.AccessControl.Permission
PassedUserID Guid
PassedCompanyName Text[50]
PassedObjectType Option
PassedObjectId Integer

ModifyPermission

procedure ModifyPermission(FieldNumChanged: Integer, PermissionBuffer: Record "Permission Buffer" temporary, PassedObjectType: Integer, PassedObjectId: Integer, PassedUserID: Guid)

Parameters

Name Type Description
FieldNumChanged Integer
PermissionBuffer Table System.Security.AccessControl."Permission Buffer"
PassedObjectType Integer
PassedObjectId Integer
PassedUserID Guid

NotificationShowUsers

procedure NotificationShowUsers(Notification: Notification)

Parameters

Name Type Description
Notification Notification

NotificationUndoChange

procedure NotificationUndoChange(Notification: Notification)

Parameters

Name Type Description
Notification Notification

DisableNotification

procedure DisableNotification(Notification: Notification)

Parameters

Name Type Description
Notification Notification

ConvertToPermission

procedure ConvertToPermission(PermissionOption: Option): Enum Permission

Parameters

Name Type Description
PermissionOption Option

Returns

Type Description
Enum System.Security.AccessControl.Permission

Events

OnTenantPermissionModified

[IntegrationEvent(False,False)]
local procedure OnTenantPermissionModified(PermissionSetId: Code[20])

Parameters

Name Type Description
PermissionSetId Code[20]

See also