Skip to content

Codeunit WSB_CDPSuperAdminMgt

Implements the "SUPER Admin" functionality.

Properties

Name Value
Access Public

Methods

wgFncIsCurrentUserSuper

Gets whether the current user is SUPER.

Returns

Type Description
Boolean true iff the current user is SUPER.

wgFncIsCurrentUserSuperAdmin

Gets whether the current user is a "SUPER Admin".

Returns

Type Description
Boolean true iff the current user is a "SUPER Admin".

wgFncIsUserSuper

Gets whether or not the specified user is a SUPER user.

Parameters

Type Name Description
Code[50] pUserID The user ID of the user to check

Returns

Type Description
Boolean true iff the specified user is SUPER.

wgFncIsUserSuperAdmin

Gets whether the specified user is a "SUPER Admin".

Parameters

Type Name Description
Code[50] pUserID The User ID of the user to check.

Returns

Type Description
Boolean true iff the specified user is a "SUPER Admin".

wgFncSuperAdminUsersExists

Gets whether any SUPER admin user exists in this environment/database.

Returns

Type Description
Boolean true iff any SUPER admin user exists.

wgFncVerifyCurrentUserIsSuper

Verifies that the current user is a user that has the SUPER permission set. Throws an error if the current user does not have the SUPER permission set.

wgFncVerifyUserIsSuper

Verifies that the specified user is a user that has the SUPER permission set. Throws an error if the specified user does not have the SUPER permission set.

Parameters

Type Name Description
Code[50] pUserID The user ID of the user to check.