Moab Accounting Manager > Managing accounts > Creating accounts

Creating accounts

To create a new account, use the command gmkaccount:

gmkaccount [-A | -I] [-o organization_name] [-d description] [-X, --extension property=value]... [-u [^|!][+|-]user_name,...]... [—createFund=True|False] [--debug] [--site site_name] [--help] [--man] [--quiet] [--verbose] [--version] {[-a] account_name}

When defining users, 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 sign can precede each member to indicate whether the member should be created in the active (+) or inactive (-) state. By default, a user will be created in the active state but not an admin. Multiple users may be passed to the -u option in a comma-delimited list. Alternatively, multiple -u options may be specified.

If the Fund object's AutoGen property is set to true (see Fund auto-generation), a fund will be automatically created for the account (unless overridden with the --createFund option). The auto-generated fund will be associated with the new account.

Example 4-1: Creating an account

$ gmkaccount -d "Chemistry Department" chemistry

 

Successfully created 1 account

Example 4-2: Creating an account that can be used by any user

$ gmkaccount -d "Common Account" -u ANY common

 

Successfully created 1 account.

Example 4-3: Creating an account and specifying user members at the same time

In this example, we make amy the account admin and associate the account with the sciences organization.

$ gmkaccount -d "Chemistry Department" -u ^amy,bob,dave chemistry -o sciences

 

Successfully created 1 account

Related topics 

© 2014 Adaptive Computing