Moab Accounting Manager > Managing roles > Querying roles

Querying roles

To display the role information, use the command glsrole:

glsrole [--full] [--show attribute_name,...] [--long] [--wide] [--format csv|standard] [--debug] [--site site_name] [--help] [--man] [--quiet] [--version] [[-r] role_name]

Example 16-2: Listing all roles along with users and descriptions

$ glsrole --show=Name,Users,Description
 
Name        Users     Description
----------- -----     ----------------------------------------------------------------------
AccountAdmin          Can update or view an  account they are admin for
Anonymous    ANY      Things that can be done by anybody
OVERRIDE     ANY      A custom authorization method will be invoked
Schedule     root     Scheduler relevant Transactions
SystemAdmin  scottmo  Can update or view any object
UserServices          User Services

Example 16-3: Listing information about the scheduler role

$ glsrole --long Scheduler
 
Name        Users   Actions                    Description
----------- -----   ------------------------   -----------------------------------------------------
Scheduler   root    UsageRecord->Create(ANY)   Scheduler relevant Transactions
                    UsageRecord->Quote(ANY)
                    UsageRecord->Reserve(ANY)
                    UsageRecord->Charge(ANY)
                    Lien->Delete(ANY)

Related topics 

© 2014 Adaptive Computing