Resource URL
GET /users
This URL is to retrieve the details of all the users.
Request Parameters
No request parameters are required for this URL.
Response Parameters
Following field is returned with the URL, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| This field contains the details of all the users. | Object |
Details of nsmUsers:
Field Name | Description | Data Type |
|---|---|---|
| Unique identifier of a user | String |
| Name given to the user | String |
| First and last name of the user | String |
| The domain in which the user was created | String |
| This field contains the information regarding the role assigned to the user. It can have any value from the list of roles already defined in the Manager, i.e.,
NoteIn addition to the above mentioned roles, the user can also be assigned a custom created role. | String |
| Email address of the user | String |
Example
Request
GET https://<MANAGER_IP>/sdkapi/users
Response
{
"nsmUsers": [
{
"userId": 1,
"userName": "admin",
"firstAndLastName": "Administrator",
"domainId": 0,
"role": "Super User",
"emailId": "Administrator Email"
},
{
"userId": 101,
"userName": "rundeckuser",
"firstAndLastName": "Rundeck User",
"domainId": 0,
"role": "Super User",
"emailId": "soc-specialists@xyz.com"
},
{
"userId": 102,
"userName": "apiuser",
"firstAndLastName": "API User",
"domainId": 0,
"role": "Super User",
"emailId": "api-user@xyz.com"
}
]
}
Error Information
Following error code is returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 400 | 4501 | Unable to get the Manager details. |