User Web Services
Overview
Universal Controller supports the following RESTful-based web services for User operations, which are listed alphabetically on this page.
Formatting specifications for each web service, including details about parameter requirements, are provided.
Permissions
The following table identifies the web service operations that a user can perform
Operation | User without any role | User with ops_service_role | User with ops_user_admin or ops_admin role |
|---|---|---|---|
Read | Read its own record (details). Read its own Role, Permissions, and Member of Groups (group membership), | Read any user record. | Create/update/read/delete any fields or any related data. |
Update | Update a subset of fields of its own record. Cannot update any related data. | Update a subset of fields of its own record. Cannot update any related data. | |
Create | No permission to create a user. | No permission to create a user. | |
Delete | No permission to delete a user. | No permission to delete a user. |
Create a User
Description | |
|---|---|
URI | |
HTTP Method | |
Description | Creates a new User. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example | See Create, Modify, and Read a User: XML and JSON Examples: XML and JSON Examples, below. |
User Properties | See User Properties, below. |
User Permission Properties | See User Permission Properties, below. |
User Role Properties | See User Role Properties, below. |
Example Response |
|
Create, Modify, and Read a User: XML and JSON Examples
The excludeRelated and retainSysIds properties are specified as attributes in the <user> element of XML web services.
XML | JSON |
|---|---|
|
|
Delete a User
Description | |
|---|---|
URI | |
HTTP Method | DELETE |
Description | Deletes a User. |
URI Parameters | See Delete a User URI Parameters, below. |
Example URI | |
Example Response |
|
Delete a User: URI Parameters
Parameter | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| ID used within the Controller to identify this user. | String; URI parameter. | Y (unless |
|
| Name used within the Controller to identify this user. | String; URI parameter. | Y (unless |
|
List Users
Description | |
|---|---|
URI | |
HTTP Method | GET |
Description | Retrieves information on all Users. |
Example URI | http://localhost:8080/uc/resources/user/list http://localhost:9090/uc/resources/user/list?showTokens=true |
Authentication | HTTP Basic |
Produces Content-Type | application/xml, application/json |
Example | |
User Properties | See User Properties. |
User Permission Properties | |
User Role Properties | See User Role Properties. |
List Users: URI Parameters
Name | Description | Specifications | Required |
|---|---|---|---|
| Show personal access tokens. | Boolean
| N |