Moab Accounting Manager > Managing accounts > Modifying accounts

Modifying accounts

To modify an account, use the command gchaccount:

gchaccount [-A | -I] [-o organization] [-d description] [-X, --extension property=value]... [--add-user(s) [^|!][+|-]user_name,...]... [--del-user(s) user_name,...] [--mod-user(s) [^|!][+|-]user_name,...]... [--debug] [--site site_man] [--help] [--man] [--quiet] [--verbose] [--version] {[-a] account_name}

User members may be added, removed or modified in an account. When adding user members to an account, the optional caret or exclamation symbol indicates whether the user should be created as an admin (^) or not (!) for the account. The optional plus or minus signs can precede each member to indicate whether the member should be created in the active (+) or inactive (-) state. When modifying user members of an account, the caret symbol or exclamation symbol indicates the user should be changed to become an admin (^) or not (!) for the account. The plus or minus signs indicate whether the user should be changed to become active (+) or inactive (-). If an active or admin modifier is not specified, that aspect of the user member will remain unchanged. If the user.firstaccountdefault server parameter is set to true, the first account that a user is added to will additionally become the default account for that user.

Example 4-8: Deactivating an account

$ gchaccount -I chemistry
 
Successfully modified 1 account

In order for account validity enforcement to occur, the Values property for the UsageRecord Account attribute must be set to '@Account'.

$ goldsh Attribute Modify Object==UsageRecord Name==Account Values=@Account

Example 4-9: Adding users as members of an account

$ gchaccount --add-users jsmith,barney chemistry
 
Successfully added 2 users

Example 4-10: Deactivating a user in an account

$ gchaccount --mod-user -dave chemistry
 
Successfully modified 1 user

© 2014 Adaptive Computing