Skip to content

Codeunit WSB_PermissionSetUpgrade

Exposes procedures to upgrade assignments of deprecated XML permission sets to permission set objects.

Properties

Name Value
Access Public

Methods

wgFncUpgradePermissionSet

Upgrades permission set assignments for all users from an XML permission set to an AL permission set owned by the caller of this procedure.

Parameters

Type Name Description
Code[20] pOldPermissionSetCode The Code of the old permission set.
Code[20] pNewPermissionSetCode The Code of the new permission set.

wgFncUpgradePermissionSet

Upgrades permission set assignments for all users.

Parameters

Type Name Description
Option pOldPermissionSetScope The Scope of the old permission set.
Guid pOldPermissionSetAppID The App ID of the old permission set.
Code[20] pOldPermissionSetCode The Code of the old permission set.
Record "Aggregate Permission Set" pRecNewPermissionSet The new permission set.

wgFncUpgradeUserPermissionSets

Upgrade all user (access control) permission set assignments from an old permission set to a new permission set.

Parameters

Type Name Description
Option pOldPermissionSetScope The scope of the old permission set.
Guid pOldPermissionSetAppID The app ID of the old permission set.
Code[20] pOldPermissionSetCode The role ID/code of the old permission set.
Record "Aggregate Permission Set" pRecNewPermissionSet The new permission set.