Top | Previous | Next |
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 assigned to the user. Scope All Examples This example will print a list of all user roles in the default datasource:
roles = system.user.getRoles("") for role in roles: print role
|