Skip to content

Codeunit WSB_PermissionMgt

Exposes procedures to help with permission group permission management.

Properties

Name Value
Access Public

Methods

wgFncGetPermissionBuffer

Gets all the permission groups the current user has access to as a record set.

Parameters

Type Name Description
Record "WSB_PermissionGroup" vRecFromPermissionGroups Filtering of the permission groups to include.
Record "WSB_PermissionGroup" temporary vRecTempOutPermissionGroups The permission groups (i.e., the result).

wgFncGetPermissionBuffer

Gets all the permission groups a user has access to as a record set.

Parameters

Type Name Description
Record "WSB_PermissionGroup" vRecFromPermissionGroups Filtering of the permission groups to include.
Record "WSB_PermissionGroup" temporary vRecTempOutPermissionGroups The permission groups (i.e., the result).
Record "User" pRecUser The user to generate the record set for.

wgFncGetPermissionGroupUserGroupConversionNeedsAttentionFlag

Gets the flag/mark that indicates whether the conversion of the Permission Group User Groups needs attention from the IT/ERP management.

Parameters

Type Name Description
Enum "WSB_PermissionGroupType" pPermissionGroupType The permission group type.
Boolean vNeedsAttentionFlag Whether the conversion (still) needs attention.

Returns

Type Description
Boolean true if retrieving the flag was successful

wgFncGrantAllPermissionsToGroup

Sets all the permissions for the Permission Group to "Yes".

Parameters

Type Name Description
Record "WSB_PermissionGroup" pRecWSB_PermissionGroup The Permission Group.

wgFncHasPermissions

Checks if the permissions under the permission groups include permissions of a type to check.

Parameters

Type Name Description
Record "WSB_PermissionGroup" vRecWSB_PermissionGroup A record set of permission groups.
Enum "WSB_PermissionType" pCheckPermissionType The permission type to check for inclusion.

Returns

Type Description
Boolean true if a positive permission of the permission type is included in one of the permission groups.

wgFncIsPermissionMember

Checks if the current user is member of the permission group (i.e., has the permission).

Parameters

Type Name Description
Record "WSB_PermissionGroup" pRecWSB_PermissionGroup The Permission Group to check for membership.

Returns

Type Description
Boolean true if the current user is member of this permission group.

wgFncIsPermissionMember

Checks if the user is member of the permission group (i.e., has the permission).

Parameters

Type Name Description
Record "WSB_PermissionGroup" pRecWSB_PermissionGroup The Permission Group to check for membership.
Record "User" pRecUser The user to check for membership.

Returns

Type Description
Boolean true if the user is member of this permission group.

wgFncIsUserGroupsDisabled

Determines whether or not "User Groups" are enabled or disabled.

Returns

Type Description
Boolean true if user groups are disabled.

wgFncRevokeAllPermissionsFromGroup

Revokes all the permissions for the Permission Group.

Parameters

Type Name Description
Record "WSB_PermissionGroup" pRecWSB_PermissionGroup The Permission Group.

wgFncSetAllPermissionsOfGroup

Sets all the permissions for the Permission Group to the specified permission setting.

Parameters

Type Name Description
Record "WSB_PermissionGroup" pRecWSB_PermissionGroup The Permission Group.
Enum "WSB_Permission" pPermission The permission value to apply.

wgFncSetPermissionForGroup

Sets a permission of a Document Archive Permission Group to the specified permission setting.

Parameters

Type Name Description
Record "WSB_PermissionGroup" pRecWSB_PermissionGroup The Document Archive Permission Group.
Enum "WSB_PermissionType" pPermissionType The permission type to set.
Enum "WSB_Permission" pPermission The permission value to apply.

wgFncSetPermissionGroupUserGroupConversionNeedsAttentionFlag

Sets/changes the flag/mark that indicates whether the conversion of the Permission Group User Groups needs attention from the IT/ERP management.

Parameters

Type Name Description
Enum "WSB_PermissionGroupType" pPermissionGroupType The permission group type.
Boolean pNeedsAttentionFlag Whether the conversion (still) needs attention.

Returns

Type Description
Boolean true if updating the flag was successful