CreateAccount()
You can use the CreateAccount()
method to create a user account on the CIMOM as an IBMTS_Account instance
to be stored in the CIMOM's persistence layer. The CreateAccount() method
belongs to the IBMTS_AccountManagementService class.
Parameters
Table 231 shows the parameters you can specify for
the CreateAccount() method:
Table 231. CreateAccount() parameters
|
Parameter |
Type |
Description |
| Account |
String |
Specifies the account to be created |
| UserID |
String |
Specifies the user for the account |
| Password |
Uint16 |
Defines the password to access the account |
| GlobalRole |
String |
Defines the access level of the account for all providers
that do not use system scope authorization; valid roles are administrator, monitor, service, and none. |
Return values
The CreateAccount() method returns one of the following error codes:
- 0: The new account was successfully created.
- 2: The account was not created.
- 5: One of the parameters was invalid.
- 6: An account with this user ID already exists.