get_roles
Use the get_roles command to check Active Directory and return a Tcl list of roles defined within the currently selected zone. If executed in a script, this command does not output its list to stdout, and no output appears in the shell where the script is executed. Use list_roles to output the list to stdout.
You can only use the get_roles command if the currently selected zone is a classic4 or hierarchical zone. The command does not work in other types of zones.
Zone Type
Classic and hierarchical
Syntax
get_roles
Abbreviation
getr
Options
This command takes no options.
Arguments
This command takes no arguments.
Return Value
This command returns a Tcl list of roles defined in the currently selected zone.
Examples
get_roles
This example returns the list of roles:
{Rescue - always permit login} scp sftp listed {UNIX Login} {Windows Login} winscp
Related Commands
Before you use this command, you must have a currently selected role stored in memory. The following commands enable you to view and select the role to work with:
list_roleslists tostdoutthe roles in the currently selected zone.new_rolecreates a new role and stores it in memory.select_roleretrieves a role from Active Directory and stores it in memory.
After you have a role stored in memory, you can use the following commands to work with role:
add_command_to_roleadds a UNIX command to the currently selected role.add_pamapp_to_roleadds a PAM application to the currently selected role.delete_roledeletes the selected role from Active Directory and from memory.get_role_appsreturns a Tcl list of the PAM applications associated with the currently selected role.get_role_commandsreturns a Tcl list of the UNIX commands associated with the currently selected role.list_role_rightsreturns a list of all UNIX commands and PAM applications associated with the currently selected role.remove_command_from_roleremoves a UNIX command from the currently selected role.remove_pamapp_from_roleremoves a PAM application from the currently selected role.save_rolesaves the selected role with its current settings to Active Directory.set_role_fieldsets a field value in the currently selected role.