GetUsersFromRole

This function gets users with specified role

Syntax

GetUserFromRole("role");

Function arguments

  • role – (String) The role of users. Allowed values: [ cc | contributor | reader | forbidden | hasAccess | canModify]

Return value

This function returns String.
This function return users with specified role separated with comma.

Examples

Example 1:
This will get all users with contributor role.

GetUsersFromRole("contributor")

Example 2:
This will get all users with read access to case.

GetUsersFromRole("hasAccess")

Example 3:
This will get all users with write access to case.

GetUsersFromRole("canModify")
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.