HasPermission¶
Returns a boolean value that indicates whether a user has permission for a specified security profile and permissions.
$Domain.HasPermission(identity: any, profile: string, permissions: number):boolean
Parameters¶
any identity
The identity to check.
string profile
The ID or name of the security profile.
number permissions
The permission to check.
Returns¶
true if the user has permission; otherwise, false.
Remarks¶
Permissions are bitwise values. You can use bitwise operators to combine permissions. By default, the following permissions are defined: Read (1), Execute (16), Write (256), Delete (4096), All (65535).
Example¶
1 2 | |