- API >
- Public API Resources >
- Projects and Users >
- Users >
- Create the First User
Create the First User¶
On this page
Create the first Ops Manager user. You can call this endpoint without having an API key.
Exceptions
- This endpoint cannot be used if Ops Manager uses LDAP for authentication.
- This endpoint can create the first user only if Ops Manager runs in
Invitation Only Mode
.
Ops Manager grants the first Ops Manager programmatic API key created through this endpoint the GLOBAL_OWNER role. The returned JSON document includes the first programmatic API key, which you can use to make further API calls.
This endpoint doesn’t create projects or organizations. With the new programmatic API key that it created, you can call the Create a Project endpoint. That endpoint can create a project and organization in one API call. You can’t login to Ops Manager until after you have created a project.
You can use this endpoint to create additional users with the following caveats:
- Ops Manager doesn’t grant the GLOBAL_OWNER role for those subsequent users unless you add the role to the API request.
- Ops Manager doesn’t create a programmatic API key for subsequent users.
Base URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0
Resource¶
Request Path Parameters¶
This endpoint does not use HTTP request path parameters.
Request Query Parameters¶
Name | Type | Description |
---|---|---|
accessList | string | IP address that you want to add to the access list for the first Ops Manager user. Note You can add more than one access list parameter and value. |
Request Body Parameters¶
Name | Type | Necessity | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
username |
string | Required | Username of the first Ops Manager user. Validated depending on the
value of the
See Note The |
||||||||
password |
string | Required | Password of the first Ops Manager user. This field is not included in the HTTP response body. Ops Manager sends this in the HTTP request only when creating the first Ops Manager user. | ||||||||
emailAddress |
string | Optional | Email address of the first Ops Manager user. | ||||||||
firstName |
string | Required | First name of the first Ops Manager user. | ||||||||
lastName |
string | Required | Last name of the first Ops Manager user. |
Response¶
Name | Type | Description |
---|---|---|
programmaticApiKey |
object | Details of the first programmatic API key created in Ops Manager. |
programmaticApiKey .desc |
string | Description of the first programmatic API key. |
programmaticApiKey .id |
string | Unique identifier of the first programmatic API key. |
programmaticApiKey .links |
array of objects | One or more links to sub-resources and/or related resources. All
links arrays in responses include at least one link called
self . The relationships between URLs are explained in the
Web Linking Specification. |
programmaticApiKey .privateKey |
string | Thirty-one alphanumeric characters and dashes that serve as the password of the first programmatic API key. |
programmaticApiKey .publicKey |
string | Six alphanumeric characters that serve as the username of the first programmatic API key. |
programmaticApiKey .roles |
array of objects | Roles assigned to the first programmatic API key. |
programmaticApiKey .roles.roleName |
string | Name of the assigned role. Ops Manager grants the first programmatic
API key the Global Owner role (GLOBAL_OWNER ). |
user |
object | Details of the first Ops Manager user. |
user .emailAddress |
string | Email address of the first Ops Manager user. |
user .firstName |
string | First name of the first Ops Manager user. |
user .id |
string | Unique identifier of the first Ops Manager user. |
user .lastName |
string | Last name of the first Ops Manager user. |
user .links |
array of objects | One or more links to sub-resources and/or related resources. All
links arrays in responses include at least one link called
self . The relationships between URLs are explained in the
Web Linking Specification. |
user .mobileNumber |
string | Mobile number of the first Ops Manager user. |
user .roles |
array of objects | Roles assigned to the first Ops Manager user. |
user .roles.roleName |
string | Name of the assigned role. Ops Manager grants the first Ops Manager user the
Global Owner role (GLOBAL_OWNER ). |
user .teamIds |
array of strings | List of unique identifiers for the teams to which the first Ops Manager user belongs. |
user .username |
string | Username of the first Ops Manager user. |