system.user.getRoles
Description
Returns a sequence of strings representing all of the roles configured in a specific user source.
Syntax
system.user. getRoles( userSource )
-
Parameters
String userSource - The user source to fetch the roles for.
-
Returns
List - A List of Strings that holds all the roles in the user source.
-
Scope
All
Code Examples
Code Snippet
#This example will print a list of all user roles in the default datasource:
roles
=
system.user.getRoles("")
for
role
in
roles:
print
role