MobileCRM.Application.checkUserRoles - Resconet/JSBridge GitHub Wiki
Checks whether the current user is member of the passed roles. Role can be either the Guid (aeb33d0f-89b4-e111-9c9a-00155d0b710a) or the role Name.
Argument | Type | Description |
---|---|---|
roles | Array(String) | Defines the roles to check. |
success | function(result) | A callback function for successful asynchronous result. The result will carry a number with the count of matching roles. |
failed | function(error) | A callback function for command failure. The error argument will carry the error message. |
scope | A scope for calling the callbacks; set "null" to call the callbacks in global scope. |