Codeunit "Azure AD User Management"
Exposes functionality to manage Microsoft Entra users.
Properties
Name | Value |
---|---|
Access | Public |
InherentEntitlements | X |
InherentPermissions | X |
Methods
SynchronizeLicensedUserFromDirectory
Synchronizes a user with the Microsoft Entra user corresponding to the authentication email that is passed as a parameter. If the user record does not exist, it gets created.
[NonDebuggable]
procedure SynchronizeLicensedUserFromDirectory(AuthenticationEmail: Text): Boolean
Parameters
Name | Type | Description |
---|---|---|
AuthenticationEmail | Text |
The user's authentication email. |
Returns
Type | Description |
---|---|
Boolean |
True if there is a user in Microsoft Entra corresponding to the authentication email; otherwise false. |
SynchronizeAllLicensedUsersFromDirectory
Synchronizes all the users from the database with the ones from Microsoft Entra. Microsoft Entra users that do not exist in the database are created.
[NonDebuggable]
procedure SynchronizeAllLicensedUsersFromDirectory()
IsUserTenantAdmin
Checks if the user is a tenant admin.
[NonDebuggable]
procedure IsUserTenantAdmin(): Boolean
Returns
Type | Description |
---|---|
Boolean |
True if the user is a tenant admin; otherwise false. |
ArePermissionsCustomized
Checks whether custom permissions are assigned to the user.
[NonDebuggable]
procedure ArePermissionsCustomized(UserSecurityId: Guid): Boolean
Parameters
Name | Type | Description |
---|---|---|
UserSecurityId | Guid |
The security ID of the user to check for. |
Returns
Type | Description |
---|---|
Boolean |
True if the user with the given user security ID has custom permissions; false otherwise. |
IsUserDelegated
Checks if the user is a delegated user.
[NonDebuggable]
procedure IsUserDelegated(UserSecID: Guid): Boolean
Parameters
Name | Type | Description |
---|---|---|
UserSecID | Guid |
Returns
Type | Description |
---|---|
Boolean |
True if the user is a delegated user; otherwise false. |
Events
OnRestoreDefaultPermissions
Integration event, raised from "Azure AD User Update Wizard" page when the changes are applied.
[IntegrationEvent(False,False)]
[NonDebuggable]
internal procedure OnRestoreDefaultPermissions(UserSecurityID: Guid)
Parameters
Name | Type | Description |
---|---|---|
UserSecurityID | Guid |
The ID of the user whose permission sets will be restored. |