...
Examples
Example 1
Code Block | ||
---|---|---|
| ||
userInGroup("Administrators", "Admin1"); |
Returns "true" if Admin1 is included in Administrators group and "false" if Admin1 is not included in Administrators group.
Example 2
Code Block | ||
---|---|---|
| ||
userInGroup("Users", currentUser()); |
Returns: True if the current user is included in "Users" group or False if the current user is not included in "Users" group.
Example 3
Code Block | ||
---|---|---|
| ||
string[] groups = {"Administrators", "Users"}; userInGroup(groups, currentUser()); |
...