Moab Accounting Manager > Managing users > Querying users

Querying users

To display user information, use the command glsuser:

glsuser [-A | -I] [-X, --extension property=value]... [-a account_name] [--full] [—show attribute_name,...] [--long] [--wide] [--format csv|standard] [--debug] [--site site_name] [--help] [--man] [--quiet] [--version] [[-u] user_pattern]

Example 3-2: Listing standard info about active users

$ glsuser -A
 
Name   Active    CommonName               PhoneNumber           EmailAddress             DefaultAccount        Description
------ --------- ------------------------ --------------------- ------------------------ --------------------- ----------------
amy    True      Wilkes, Amy              (509) 555-8765        [email protected]
bob    True      Smith, Robert F.         (509) 555-1234        [email protected]

Example 3-3: Displaying bob's phone number

$ glsuser —show PhoneNumber bob —quiet 

(509) 555-1234

Example 3-4: Listing amy's accounts

$ glsuser —show Accounts amy -l -q
 
-------------
chemistry
biology

Example 3-5: Listing all users belonging to the chemistry account

$ glsuser —show Name -a chemistry -q
 
-------------
amy
dave

Related topics 

© 2014 Adaptive Computing