Print

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")
Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?