UserList
Use this resource to return a list of users in the authenticated user account in either JSON or CSV format.
Method summary
| HTTP Method | Path | Description |
|---|---|---|
| GET | /scr/api/UserList | Returns a list of users in the authenticated user account. |
GET /scr/api/UserList
- Description
- Use this method to return a list of users in the authenticated user account in either JSON or CSV format.
- Resource information
-
Requirements Description Response format JSON or CSV Requires authentication Yes. The user making the request must be an administrator. Supports OAuth 2 client credentials Yes using a User Service ID containing User Management Category Rate limited Not yet
- Parameters
-
Name Location Description Required Type format Query The format to return. Use csvto specify CSV. If this parameter is not provided, JSON is returned.No String version Query The version of the requested API. The response might vary depending on the requested version. Possible values are: 2011091720091212(deprecated)
20091212version are returned. In a future release, this deprecated parameter will be ignored and the20110917version will be used.No. This parameter might become required in the future. String
- Response for version
20110917 -
- Example input
- GET all users in the account in JSON format:
- Using OAuth 2 client
credentials:
curl -i -H "Authorization: Bearer access_token" "https://your_server_url/scr/api/UserList?version=20110917"
- Using OAuth 2 client
credentials:
curl -i -H "Authorization: Bearer access_token" "https://your_server_url/scr/api/UserList?version=20110917&format=csv"
- Using OAuth 2 client
credentials:
- Example output
- In JSON
format:
In CSV format:{ "version":"20110917", "users":[ { "name":"username1", "id":"7000f", "email":"user1_email@website.com", "avatarId":"70010", "license":"Editor", "admin":true, "date":1310654350393, "archived":false, "invited":false, "licensed":true, "locked":false, "businessUnit": { "id": "150005", "name": "department1" } }, { "name":"username2", "id":"70022", "email":"user2_email@website.com", "license":"Community", "admin":false, "archived":false, "invited":false, "licensed":true, "locked":false, "businessUnit": { "id": "150006", "name": "department2" } }, { "name":"username3", "id":"70021", "email":"user3_email@website.com", "license":"Contributor", "admin":false, "archived":false, "invited":false, "licensed":true, "locked":false, "businessUnit": { "id": "150007", "name": "department3" } }, { "name":"username4", "id":"70020", "email":"user4_email@website.com", "license":"Viewer", "admin":false, "date":1310653543628, "archived":false, "invited":false, "licensed":true, "locked":false, "businessUnit": { "id": "150008", "name": "department4" } } ] }"License Type","Full Name","Email Address","Business Unit","Administrator", "Last Login / Invite / Archive Date (Eastern Standard Time)","Archived","Invited","Licensed","Locked" Editor, "username1", "user1_email@website.com", "Department 1", Yes, "2011/07/14 02:39:10", No, No, Yes, No Community, "username2", "user2_email@website.com", "", No, "", No, No, Yes, No Contributor, "username3", "user3_email@website.com", "", No, "", No, No, Yes, No Viewer, "username4", "user4_email@website.com", "", No, "2011/07/14 02:25:43", No, No, Yes, No
- Response properties
-
- version
- The version of the API used to create the response.
- users
- The array of user objects.
- user.name
- The full name of the user.
- user.id
- The ID of the user.
- user.email
- The email address of the user.
- user.avatarId
- The ID of the user's avatar.
- user.license
- Contains one of the following possible values:
EditorContributorCommunity-
Viewer
- user.admin
- Contains one of the following possible values:
trueif the user is an administratorfalseif the user is not an administrator
- user.date
- This property depends on the values of the
archivedandinvitedproperties.- If
archivedistrue, then it's the date when the user was archived. - If
invitedistrue, then it's the date when the user was invited. - In all other instances, it's the date of the user's most recent login.
- If all the values are null, then the date property is not present.
- If
- user.archived
- Contains one of the following possible values:
trueif the user is archivedfalseif the user is not archived
- user.invited
- Contains one of the following possible values:
trueif the user is invitedfalseif the user is not invited
- user.licensed
- Contains one of the following possible values:
trueif the user is licensed, that is the user is counted in the license used countsfalseif the user is not counted in the license used counts
- user.locked
- The value is
trueif the user is locked out, that is the user can't log in at the moment. Otherwise, the value isfalse. - user.businessUnit
- The department, division, workgroup, or functional area that the user works in.
- Response messages
-
HTTP code Reason 200 The request was completed successfully.
401 The user isn't authorized to make the request.