Codeunit 9871 Security Group Impl.

System Application, System.Security.AccessControl

Source AL, 622 lines

src/System Application/App/Security Groups/src/SecurityGroupImpl.Codeunit.allines 12 to 27 of 622, Copyright (c) Microsoft Corporation. MIT

codeunit 9871 "Security Group Impl."{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    Permissions = tabledata "Security Group" = rimd,                  tabledata User = rimd,                  tabledata "User Property" = rimd;    var        AzureAdGraph: Codeunit "Azure AD Graph";        EntraGroups: Dictionary of [Text, Text];        AreAllEntraGroupsFetched: Boolean;        InvalidWindowsGroupErr: Label 'The group ID %1 does not correspond to a valid Windows group.', Comment = '%1 = Windows group ID';        InvalidEntraGroupErr: Label 'The group ID %1 does not correspond to a valid Microsoft Entra group.', Comment = '%1 = Microsoft Entra security group ID';        InvalidGroupNameErr: Label 'The group %1 could not be found.', Comment = '%1 = group name';

All 622 lines

Events 2 in 29

[InternalEvent] OnIsWindowsAuthentication(var IsWindowsAuthentication: Boolean; var Handled: Boolean)new in 22
[InternalEvent] OnBeforeCreateAadGroupUserInSaaS(var SecurityGroup: Record "Security Group"; GroupId: Text; GroupName: Text; var Handled: Boolean)new in 22

Public procedures 22 in 29

ValidateGroupId(GroupId: Text)new in 22
Create(GroupCode: Code[20]; GroupId: Text)new in 22
Delete(GroupCode: Code[20])new in 22
Copy(SourceGroupCode: Code[20]; DestinationGroupCode: Code[20]; DestinationGroupId: Text)new in 22
CopyPermissions(SourceGroupCode: Code[20]; DestinationGroupCode: Code[20])new in 22
AddPermissionSet(GroupCode: Code[20]; RoleId: Code[20]; Company: Text[30]; Scope: Option System,Tenant; AppId: Guid)new in 22

All 23 procedures in 22-29

Changes 3 in 24

List17181920212223242526272829
Procedures13
GetGroups(var SecurityGroupBuffer: Record "Security Group Buffer")22 to 23
gone
GetGroups(var SecurityGroupBuffer: Record "Security Group Buffer"; FetchGroupNames: Boolean)new in 24
added
GetCode(GroupId: Text[250]; var GroupCode: Code[20]): Booleannew in 24
added

All 4 changes in 22-29