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 |
|---|---|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user retainSysIds="true">
<active>true</active>
<browserAccess>-- System Default --</browserAccess>
<businessPhone />
<commandLineAccess>-- System Default --</commandLineAccess>
<department />
<email />
<firstName>stone b</firstName>
<impersonate/>
<lastName>branch</lastName>
<lockedOut>false</lockedOut>
<loginMethod>Standard</loginMethod>
<manager />
<middleName />
<mobilePhone />
<passwordNeedsReset>false</passwordNeedsReset>
<permissions>
<permission>
<allGroups>true</allGroups>
<commands />
<defaultGroup>true</defaultGroup>
<nameWildcard>*</nameWildcard>
<notGroups>false</notGroups>
<opCreate>false</opCreate>
<opDelete>true</opDelete>
<opExecute>true</opExecute>
<opRead>true</opRead>
<opUpdate>true</opUpdate>
<opswiseGroups/>
<permissionType>Agent</permissionType>
<sysId>83c2d3b15d0c417f8a8890be17f1f4cd</sysId>
</permission>
</permissions>
<sysId>4e820e27b548497bb8005bb884f2816a</sysId>
<timeZone>System</timeZone>
<title>IT Technician</title>
<tokens/>
<userName>stonebranch-user-02</userName>
<userRoles>
<userRole>
<role description="Can create reports that belong to a group to which I am a member.">ops_report_group</role>
<sysId>018b60fc6bb54ca68571f789e5ee1ad5</sysId>
</userRole>
<userRole>
<role description="Can create global reports.">ops_report_global</role>
<sysId>b21ecafbcd3f4424bfeca3d9846f2c34</sysId>
</userRole>
<userRole>
<role description="The report publishing role.">ops_report_publish</role>
<sysId>cb84572b5bf44ddfb1e9e0e9b9d1b65a</sysId>
</userRole>
</userRoles>
<webServiceAccess>-- System Default --</webServiceAccess>
</user>
| {
"active": true,
"browserAccess": "-- System Default --",
"businessPhone": null,
"commandLineAccess": "-- System Default --",
"department": null,
"email": null,
"firstName": "stone b",
"impersonate": [],
"lastName": "branch",
"lockedOut": false,
"loginMethod": "Standard",
"manager": null,
"middleName": null,
"mobilePhone": null,
"passwordNeedsReset": false,
"permissions": [
{
"allGroups": true,
"commands": null,
"defaultGroup": true,
"nameWildcard": "*",
"notGroups": false,
"opCreate": false,
"opDelete": true,
"opExecute": true,
"opRead": true,
"opUpdate": true,
"opswiseGroups": [],
"permissionType": "Agent",
"sysId": "83c2d3b15d0c417f8a8890be17f1f4cd"
}
],
"retainSysIds": true,
"sysId": "4e820e27b548497bb8005bb884f2816a",
"timeZone": "System",
"title": "IT Technician",
"tokens": [],
"userName": "stonebranch-user-02",
"userRoles": [
{
"role": {
"description": "Can create reports that belong to a group to which I am a member.",
"value": "ops_report_group"
},
"sysId": "018b60fc6bb54ca68571f789e5ee1ad5"
},
{
"role": {
"description": "Can create global reports.",
"value": "ops_report_global"
},
"sysId": "b21ecafbcd3f4424bfeca3d9846f2c34"
},
{
"role": {
"description": "The report publishing role.",
"value": "ops_report_publish"
},
"sysId": "cb84572b5bf44ddfb1e9e0e9b9d1b65a"
}
],
"webServiceAccess": "-- System Default --"
} |
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 |
List Users: XML and JSON Examples
XML | JSON |
|---|---|
<users>
<user>
<active>true</active>
<browserAccess>-- System Default --</browserAccess>
<businessPhone />
<commandLineAccess>-- System Default --</commandLineAccess>
<department />
<email />
<firstName>stone b</firstName>
<impersonate/>
<lastName>branch</lastName>
<lockedOut>false</lockedOut>
<loginMethod>Standard</loginMethod>
<manager />
<middleName />
<mobilePhone />
<passwordNeedsReset>false</passwordNeedsReset>
<permissions/>
<sysId>4e820e27b548497bb8005bb884f2816a</sysId>
<timeZone>System</timeZone>
<title>IT Technician</title>
<tokens/>
<userName>stonebranch-user-02</userName>
<userRoles>
<userRole>
<role description="Can create reports that belong to a group to which I am a member.">ops_report_group</role>
<sysId>018b60fc6bb54ca68571f789e5ee1ad5</sysId>
</userRole>
<userRole>
<role description="Can create global reports.">ops_report_global</role>
<sysId>b21ecafbcd3f4424bfeca3d9846f2c34</sysId>
</userRole>
<userRole>
<role description="The report publishing role.">ops_report_publish</role>
<sysId>cb84572b5bf44ddfb1e9e0e9b9d1b65a</sysId>
</userRole>
</userRoles>
<webServiceAccess>-- System Default --</webServiceAccess>
</user>
<user>
<active>true</active>
<browserAccess>-- System Default --</browserAccess>
<businessPhone />
<commandLineAccess>-- System Default --</commandLineAccess>
<department />
<email />
<firstName>stone c</firstName>
<impersonate/>
<lastName>branch</lastName>
<lockedOut>false</lockedOut>
<loginMethod>Standard</loginMethod>
<manager />
<middleName />
<mobilePhone />
<passwordNeedsReset>false</passwordNeedsReset>
<permissions/>
<sysId>c212afe3dd6b4cb98cc3cb432cf7be46</sysId>
<timeZone>System</timeZone>
<title>IT Technician</title>
<tokens/>
<userName>stonebranch-user-03</userName>
<userRoles/>
<webServiceAccess>-- System Default --</webServiceAccess>
</user>
</users> | [
{
"active": true,
"browserAccess": "-- System Default --",
"businessPhone": null,
"commandLineAccess": "-- System Default --",
"department": null,
"email": null,
"firstName": "stone b",
"impersonate": [],
"lastName": "branch",
"lockedOut": false,
"loginMethod": "Standard",
"manager": null,
"middleName": null,
"mobilePhone": null,
"passwordNeedsReset": false,
"permissions": [],
"sysId": "4e820e27b548497bb8005bb884f2816a",
"timeZone": "System",
"title": "IT Technician",
"tokens": [],
"userName": "stonebranch-user-02",
"userRoles": [
{
"role": {
"description": "Can create reports that belong to a group to which I am a member.",
"value": "ops_report_group"
},
"sysId": "018b60fc6bb54ca68571f789e5ee1ad5"
},
{
"role": {
"description": "Can create global reports.",
"value": "ops_report_global"
},
"sysId": "b21ecafbcd3f4424bfeca3d9846f2c34"
},
{
"role": {
"description": "The report publishing role.",
"value": "ops_report_publish"
},
"sysId": "cb84572b5bf44ddfb1e9e0e9b9d1b65a"
}
],
"webServiceAccess": "-- System Default --"
},
{
"active": true,
"browserAccess": "-- System Default --",
"businessPhone": null,
"commandLineAccess": "-- System Default --",
"department": null,
"email": null,
"firstName": "stone c",
"impersonate": [],
"lastName": "branch",
"lockedOut": false,
"loginMethod": "Standard",
"manager": null,
"middleName": null,
"mobilePhone": null,
"passwordNeedsReset": false,
"permissions": [],
"sysId": "c212afe3dd6b4cb98cc3cb432cf7be46",
"timeZone": "System",
"title": "IT Technician",
"tokens": [],
"userName": "stonebranch-user-03",
"userRoles": [],
"webServiceAccess": "-- System Default --"
},
] |
Modify a User
Description | |
|---|---|
URI | |
HTTP Method | PUT |
Description | Modifies the User specified by the sysId in the request. |
Example URI | |
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 |
|
Read a User
Description | |
|---|---|
URI | |
HTTP Method | GET |
Description | Retrieves 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 |
User Properties | See User Properties. |
User Permission Properties | |
User Role Properties | See User Role Properties. |
Example Response |
|
Read a User: URI Parameters
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 |
|
| Show personal access tokens. | Boolean
| N |
Properties
User Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Active | Specification for whether or not the user is active. An active user can log in to the Controller. An inactive user cannot log in to the Controller, and the user will not appear in user lists. | Boolean. Valid Values: true/false. Default is false. | N |
| Web Browser Access | Specification for whether or not the user can log in to the user interface. | Valid Values:
Default is – System Default – (0). | N |
| Business Phone | Business phone number of this user. | N | |
| Command Line Access | Specification for whether or not the user can log in to the Universal Controller Command Line Interface (CLI). | Valid values:
Default is – System Default – (0). | N |
| Department | Business department of this user. | N | |