...
Universal Controller supports the following RESTful-based web services for User operations, which are listed alphabetically on this page.
- User Web Services#Create Create a UserUser Web Services#Delete
- Delete a User
- User Web Services#List List Users
- User Web Services#Modify Modify a UserUser Web Services#Read
- Read a User
Formatting specifications for each web service, including details about parameter requirements, are provided.
...
Description | |
---|---|
URI | http://host_name/uc/resources/user |
HTTP Method | |
Description | Creates a new User. |
Example URI | http://localhost:8080/uc/resources/user |
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 Web Services#User Properties, below. |
User Permission Properties | See User Web Services#User Permission Properties, below. |
User Role Properties | See User Web Services#User Role Properties, below. |
Example Response |
|
...
XML | JSON | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Anchor |
---|
...
|
Description | |
---|---|
URI | http://host_name/uc/resources/user/token |
HTTP Method |
URI Parameters
See User Web Services#Delete a User URI Parameters, below.
POST |
Description |
Deletes a User.
Create the personal access token | |
Example URI |
Example Response
- Status 200 /OK
User {username} deleted successfully. - Status 400 /Bad Request
Mutual exclusion violation. Cannot specify userid and username at the same time. - Status 404 /Not Found
User with {username/userid} does not exist.
...
Authentication | HTTP Basic |
Produces Content-Type | text/plain |
Consumes Content-Type | Application/XML, Application/JSON |
Example Responses |
|
Create Personal Access Token: Payload Properties (XML, JSON)
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|
userid
ID used within the Controller to identify this user.
String; URI parameter.
Y (unless userename
is specified)
username
username
Name used within the Controller to identify this user.
String; URI parameter.
Y (unless userid
is specified)
userid
...
Description
...
URI
...
HTTP Method
...
GET
...
Description
...
Retrieves information on all Users.
...
Example URI
...
Authentication
...
HTTP Basic
...
Produces Content-Type
...
application/xml, application/json
...
Example
...
See List Users: XML and JSON Examples.
...
User Properties
...
See #User Properties.
...
User Permission Properties
...
See User Web Services#User Permission Properties.
...
User Role Properties
...
See User Web Services#User Role Properties.
...
XML
...
JSON
...
...
Expand | ||
---|---|---|
| ||
[ { |
...
userId | N/A | UUID of the user | UUID of the user | N | userName |
| N/A | User Name | String value of User name | N | userId |
name | Token Name | Token Name | Specifies the name of the application that will access the Universal Controller Web Service APIs using the personal access token. | Y | |
expiration | Expiration | Description of property. | Specifies when the personal access token expires. If left unspecified, the token never expires. | N |
Create Personal Access Token: XML and JSON Examples
XML | JSON | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Example Request |
|
| ||||||||||
Example Response |
|
|
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user |
HTTP Method | DELETE |
Description | Deletes a User. |
URI Parameters | See Delete a User URI Parameters, below. |
Example URI | |
Example Response |
|
Anchor | ||||
---|---|---|---|---|
|
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 |
|
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user/token/list |
HTTP Method | GET |
Description | List the user tokens |
Example URI | http://localhost:9090/uc/resources/user/token/list http://localhost:9090/uc/resources/user/token/list?username=test http://localhost:9090/uc/resources/user/token/list?userid=1234567 |
Authentication | HTTP Basic |
Produces Content-Type | Application/XML, Application/JSON |
Consumes Content-Type | |
Example Responses |
|
List Personal Access Tokens: Query Parameters
The following request parameters will be needed for the service.
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|---|
userid | N/A | UUID of the user | UUID of the user | Y | username |
username | N/A | User Name | String value of User name | Y | userid |
List Personal Access Tokens: XML and JSON Examples
XML | JSON | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Example Response |
|
|
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user/list |
HTTP Method | GET |
Description | Retrieves information on all Users. |
Example URI | http://localhost:8080/uc/resources/user/list |
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. |
Anchor | ||||
---|---|---|---|---|
|
XML | JSON | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user |
HTTP Method | PUT |
Description | Modifies the User specified by the sysId in the request. |
Example URI | http://localhost:8080/uc/resources/user |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example | |
User Properties | See User Properties. |
User Permission Properties | |
User Role Properties | See User Role Properties. |
Example Response |
|
Anchor | ||||
---|---|---|---|---|
|
The User Read and List API’s optionally allows to display the tokens using the query parameter. The default value is false and user has to pass the parameter to view the token details.
Optionally Include Personal Access Tokens on Read/List User Payloads: User Read API
Description | |
---|---|
URI | http://host_name/uc/resources/user |
HTTP Method | GET |
Description | List the user tokens |
Example URI | http://localhost:9090/uc/resources/user?username=test&showTokens=true http://localhost:9090/uc/resources/user?userid=1234567&showTokens=false |
Authentication | HTTP Basic |
Produces Content-Type | Application/XML, Application/JSON |
Consumes Content-Type | |
Example Responses |
|
Optionally Include Personal Access Tokens on Read/List User Payloads: User List API
Description | |
---|---|
URI | http://host_name/uc/resources/user/list |
HTTP Method | GET |
Description | List the user tokens |
Example URI | http://localhost:9090/uc/resources/user/list?username=test&showTokens=true http://localhost:9090/uc/resources/user/list?userid=1234567&showTokens=false |
Authentication | HTTP Basic |
Produces Content-Type | Application/XML, Application/JSON |
Consumes Content-Type | |
Example Responses |
|
Optionally Include Personal Access Tokens on Read/List User Payloads: Query Parameters
The following request parameters will be needed for the service.
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|---|
userid | N/A | UUID of the user | UUID of the user | Y | username |
username | N/A | User Name | String value of User name | Y | userid |
showTokens | N/A | Show tokens | Boolean
| N |
Optionally Include Personal Access Tokens on Read/List User Payloads: Example Response
XML | JSON | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Example Response |
|
|
Anchor | ||||
---|---|---|---|---|
|
Description | ||
---|---|---|
URI | http://host_name/uc/resources/user | |
HTTP Method | PUTGET | |
Description | Modifies the User specified by the sysId in the request. | Example URIRetrieves information on a specific User. |
URI Parameters | See Read a User: URI Parameters, below. | |
Example URI | ||
Consumes Content-Type | n/a | |
Produces Content-Type | application/xml, application/json | |
Produces Content-Type | n/a | |
Example | User Properties | See User Properties. |
User Permission Properties | ||
User Role Properties | See User Role Properties. | |
Example Response |
|
...
Anchor | ||
---|---|---|
|
...
User Properties
...
See User Web Services#User Properties.
...
User Permission Properties
...
See User Web Services#User Permission Properties.
...
User Role Properties
...
See User Web Services#User Role Properties.
...
Example Response
...
- Status 200 /OK
Successfully updated the user with sysId <sysId>.
|
Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|
| Unique ID for this User. | Y |
| |
| Name used within the Controller to identify this User. | Maximum 40 alphanumerics. | Y |
|
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user/token |
HTTP Method |
DELETE |
Description |
Retrieves information on a specific User.
URI Parameters
Delete the personal access token(s) | |
Example URI |
abc |
1234567 | |
Authentication | HTTP Basic |
Produces Content-Type |
n/a
User Properties
User Permission Properties
User Role Properties
Example Response
(See Create, Modify, and Read a User: XML and JSON Examples.)
Consumes Content-Type |
application/xml, application/json
Example Responses |
|
|
...
|
Revoke Personal Access Token: Query Parameters
The following request parameters will be needed for the service.
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|---|
userid |
N/A | UUID of the user | UUID of the user | Y |
username |
is specified)
username |
username
userid
N/A |
Name used within the Controller to identify this User.
Maximum 40 alphanumerics.
Y
(unless userid
is specified)
User Name | String value of User name | N | userid | ||
tokenname | token name | Token Name | Specifies the name of the application that will access the Universal Controller Web Service APIs using the personal access token. | Y |
Anchor | ||||
---|---|---|---|---|
|
...