Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
Create Personal Access Token
Create Personal Access Token
Create Personal Access Token


 Description

URI

http://host_name/uc/resources/user/token

HTTP Method

POST

Description

Create the personal access token

Example URI

http://localhost:8080/uc/resources/user/token

Authentication

HTTP Basic

Produces Content-Type

text/plain

Consumes Content-Type

Application/XML, Application/JSON

Example Responses

  • Status 200

    • ucp_taUFeDdhrlpn8Gc5Vu9IO2LRQ29pbvBRJUSPvifX

  • Status 400

    • Error message.

  • Status 403

    • Operation prohibited due to security constraints.

  • Status 404

    • A user with name “{name}” does not exist.

    • A user with id "{uuid}" does not exist.

  • Status 500

    • Unexpected request failure. See log(s) for more details.

Create Personal Access Token: Payload Properties (XML, JSON)

Property

UI Field Name

Description

Specifications

Required

Mutually Exclusive With

userId

N/A

UUID of the user

UUID of the user

N

userName

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
Expand
titleXML
 <token>
        <expiration>2022-07-30</expiration>
        <name>test1</name>
        <userId></userId>
        <userName>sha</userName>
    </token>



Expand
titleJSON
{
        "expiration": "2022-07-30",
        "name": "test1",
        "userName": "ops.admin",
        "userId": ""
    }
Example Response
Expand
titleXML
ucp_taUFeDdhrlpn8Gc5Vu9IO2LRQ29pbvBRJUSPvifP
Expand
titleJSON
ucp_taUFeDdhrlpn8Gc5Vu9IO2LRQ29pbvBRJUSPvifP

Anchor
Delete a User
Delete a User
Delete a User

...

Anchor
List Personal Access Tokens
List Personal Access Tokens
List Personal Access Tokens


 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

  • Status 200

    • Successful token list

  • Status 400

    • Error message.

  • Status 403

    • Operation prohibited due to security constraints.

  • Status 404

    • A user with name “{name}” does not exist.

    • A user with id "{uuid}" does not exist.

  • Status 500

    • Unexpected request failure. See log(s) for more details.

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
Expand
titleXML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tokens>
    <token>
        <createTime>2022-07-28 17:11:35 -0400</createTime>
        <expiration>20220730</expiration>
        <lastUsed>Never</lastUsed>
        <name>test2</name>
        <userName>ops.admin</userName>
    </token>
    <token>
        <createTime>2022-07-29 12:39:20 -0400</createTime>
        <expiration>20220730</expiration>
        <lastUsed>Never</lastUsed>
        <name>test3</name>
        <userName>ops.admin</userName>
    </token>
    <token>
        <createTime>2022-07-28 17:08:07 -0400</createTime>
        <expiration>20220730</expiration>
        <lastUsed>Never</lastUsed>
        <name>test4</name>
        <userName>ops.admin</userName>
    </token>
    <token>
        <createTime>2022-07-29 12:56:33 -0400</createTime>
        <expiration>20220730</expiration>
        <lastUsed>Never</lastUsed>
        <name>test5</name>
        <userName>ops.admin</userName>
    </token>
</tokens>
Expand
titleJSON
[
    {
        "createTime": "2022-07-28 17:11:35 -0400",
        "expiration": "20220730",
        "lastUsed": "Never",
        "name": "test2",
        "userName": "ops.admin"
    },
    {
        "createTime": "2022-07-29 12:39:20 -0400",
        "expiration": "20220730",
        "lastUsed": "Never",
        "name": "test3",
        "userName": "ops.admin"
    },
    {
        "createTime": "2022-07-28 17:08:07 -0400",
        "expiration": "20220730",
        "lastUsed": "Never",
        "name": "test4",
        "userName": "ops.admin"
    },
    {
        "createTime": "2022-07-29 12:56:33 -0400",
        "expiration": "20220730",
        "lastUsed": "Never",
        "name": "test5",
        "userName": "ops.admin"
    }
]

Anchor
List Users
List Users
List Users


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

See List Users: XML and JSON Examples.

User Properties

See #User Properties.

User Permission Properties

See User Permission Properties.

User Role Properties

See User Role Properties.

...

XML

...

JSON

...

Expand
titleXML
<users>
<user> <active>true</active> <browserAccess>-- System Default --</browserAccess> <businessPhone /> <commandLineAccess>-- System Default --</commandLineAccess> <department /> <email>test@test.com</email> <firstName>Joe</firstName> <lastName>Doe</lastName> <lockedOut>false</lockedOut> <loginMethod>Standard, Single Sign-On</loginMethod> <manager>Administrator</manager> <middleName>M</middleName> <mobilePhone /> <passwordNeedsReset>false</passwordNeedsReset> <permissions /> <sysId>3de4c72e27c94d4aa840bffcbd7509ca</sysId> <timeZone /> <title>Vice President</title> <userName>test.user</userName> <userPassword>abc123</userPassword> <userRoles /> <webServiceAccess>-- System Default --</webServiceAccess> </user>
<user>
<active>true</active>
<browserAccess>-- System Default --</browserAccess>
<businessPhone />
<commandLineAccess>-- System Default --</commandLineAccess>
<department />
<email>test@test.com</email>
<firstName>Joe</firstName>
<lastName>Doe</lastName>
<lockedOut>false</lockedOut>
<loginMethod>Standard, Single Sign-On</loginMethod>
<manager>Administrator</manager>
<middleName>M</middleName>
<mobilePhone />
<passwordNeedsReset>false</passwordNeedsReset>
<permissions>
<permission>
<allGroups>false</allGroups>
<commands>ALL</commands>
<defaultGroup>true</defaultGroup>
<nameWildcard>*</nameWildcard>
<opCreate>false</opCreate>
<opDelete>true</opDelete>
<opExecute>true</opExecute>
<opRead>true</opRead>
<opUpdate>true</opUpdate>
<opswiseGroups />
<permissionType>Agent</permissionType>
<sysId>c489750500d444eca9325559d0ef9673</sysId>
</permission>
<permissions>
<sysId>3de4c72e27c94d4aa840bffcbd7509ca</sysId>
<timeZone />
<title>Vice President</title>
<userName>test.user</userName>
<userPassword>abc123</userPassword>
<userRoles />
<webServiceAccess>-- System Default --</webServiceAccess>
</user>
</users>

...

titleJSON

...

Optionally Include Personal Access Tokens on User Payloads: User List API

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.


 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

  • Status 200

    • Successful user details

  • Status 400

    • Error message.

  • Status 403

    • Operation prohibited due to security constraints.

  • Status 404

    • A user with name “{name}” does not exist.

    • A user with id "{uuid}" does not exist.

  • Status 500

    • Unexpected request failure. See log(s) for more details.

Optinally Include Personal Access Tokens on 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

  • True - Includes the Token details

  • False (Default) - Empty Token List

N


Anchor
List Users XML and JSON Examples
List Users XML and JSON Examples
List Users: XML and JSON Examples

XML

JSON

Expand
titleXML
<users>
<user> <active>true</active> <browserAccess>-- System Default --</browserAccess> <businessPhone /> <commandLineAccess>-- System Default --</commandLineAccess> <department /> <email>test@test.com</email> <firstName>Joe</firstName> <lastName>Doe</lastName> <lockedOut>false</lockedOut> <loginMethod>Standard, Single Sign-On</loginMethod> <manager>Administrator</manager> <middleName>M</middleName> <mobilePhone /> <passwordNeedsReset>false</passwordNeedsReset> <permissions /> <sysId>3de4c72e27c94d4aa840bffcbd7509ca</sysId> <timeZone /> <title>Vice President</title> <userName>test.user</userName> <userPassword>abc123</userPassword> <userRoles /> <webServiceAccess>-- System Default --", </webServiceAccess> </user>
"department": null,<user>
"email": "test@test.com", <active>true</active>
"firstName": "Joe",
"lastName": "Doe",
"lockedOut": false, <browserAccess>-- System Default --</browserAccess>
<businessPhone />
"loginMethod": Standard, Single Sign-On",
"manager": "Administrator",
"middleName": "M",
"mobilePhone": null,
"passwordNeedsReset": false,
"permissions": [],
"sysId": "3de4c72e27c94d4aa840bffcbd7509ca",
"timeZone": null,
"title": "Vice President",
"userName": "test.user",
"userPassword": "abc123",
"userRoles": [],
"webServiceAccess": "-- System Default --"
},
{ "active": true, "browserAccess": "-- System Default --", "businessPhone": null, "commandLineAccess": "-- System Default --", "department": null, "email": "test@test.com", "firstName": "Joe", "lastName": "Doe", "lockedOut": false, "loginMethod": Standard, Single Sign-On", "manager": "Administrator", "middleName": "M", "mobilePhone": null, "passwordNeedsReset": false, "permissions": [ { "allGroups": false, "commands": "ALL", "defaultGroup": true, "nameWildcard": "*", "opCreate": false, "opDelete": false, "opExecute": true, "opRead": true, "opUpdate": true, "opswiseGroups": [], "permissionType": "Agent", "sysId": "c489750500d444eca9325559d0ef9673" } ], "retainSysIds": true, "sysId": "3de4c72e27c94d4aa840bffcbd7509ca", "timeZone": null, "title": "Vice President", "userName": "test.user", "userPassword": "abc123", "userRoles": [ { "role": { "description": "The universal template admin role.", "value": "ops_universal_template_admin" }, "sysId": "b8c25922d370438aada276cff669136d" }, { "role": { "description": "The report publishing role.", "value": "ops_report_publish" }, "sysId": "fda36f00cc4544bc8f7fbd203290539a" } ], "webServiceAccess <commandLineAccess>-- System Default --</commandLineAccess>
<department />
<email>test@test.com</email>
<firstName>Joe</firstName>
<lastName>Doe</lastName>
<lockedOut>false</lockedOut>
<loginMethod>Standard, Single Sign-On</loginMethod>
<manager>Administrator</manager>
<middleName>M</middleName>
<mobilePhone />
<passwordNeedsReset>false</passwordNeedsReset>
<permissions>
<permission>
<allGroups>false</allGroups>
<commands>ALL</commands>
<defaultGroup>true</defaultGroup>
<nameWildcard>*</nameWildcard>
<opCreate>false</opCreate>
<opDelete>true</opDelete>
<opExecute>true</opExecute>
<opRead>true</opRead>
<opUpdate>true</opUpdate>
<opswiseGroups />
<permissionType>Agent</permissionType>
<sysId>c489750500d444eca9325559d0ef9673</sysId>
</permission>
<permissions>
<sysId>3de4c72e27c94d4aa840bffcbd7509ca</sysId>
<timeZone />
<title>Vice President</title>
<userName>test.user</userName>
<userPassword>abc123</userPassword>
<userRoles />
<webServiceAccess>-- System Default --</webServiceAccess>
</user>
</users>
Expand
titleJSON
[ {
"active": true,
"browserAccess": "-- System Default --",
"businessPhone": null,
"commandLineAccess": "-- System Default --",
"department": null,
"email": "test@test.com",
"firstName": "Joe",
"lastName": "Doe",
"lockedOut": false,
"loginMethod": Standard, Single Sign-On",
"manager": "Administrator",
"middleName": "M",
"mobilePhone": null,
"passwordNeedsReset": false,
"permissions": [],
"sysId": "3de4c72e27c94d4aa840bffcbd7509ca",
"timeZone": null,
"title": "Vice President",
"userName": "test.user",
"userPassword": "abc123",
"userRoles": [],
"webServiceAccess": "-- System Default --"
},
{ "active": true, "browserAccess": "-- System Default --", }
]

...

Description

...

URI

...

HTTP Method

...

PUT

...

Description

...

Modifies the User specified by the sysId in the request.
 
To modify User properties without modifying related records, see the excludeRelated property.

...

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.

...

User Properties

...

See User Properties.

...

User Permission Properties

...

See User Permission Properties.

...

User Role Properties

...

See User Role Properties.

...

Example Response

...

  • Status 200 /OK
    Successfully updated the user with sysId <sysId>.

...

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

...

  • Status 200

    • Successful user details

  • Status 400

    • Error message.

  • Status 403

    • Operation prohibited due to security constraints.

  • Status 404

    • A user with name “{name}” does not exist.

    • A user with id "{uuid}" does not exist.

  • Status 500

    • Unexpected request failure. See log(s) for more details.

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

...

  • Status 200

    • Successful user details

  • Status 400

    • Error message.

  • Status 403

    • Operation prohibited due to security constraints.

  • Status 404

    • A user with name “{name}” does not exist.

    • A user with id "{uuid}" does not exist.

  • Status 500

    • Unexpected request failure. See log(s) for more details.

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

  • True - Includes the Token details

  • False (Default) - Empty Token List

...

N

Optionally Include Personal Access Tokens on Read/List User Payloads: Example Response

...

XML

...

JSON

...

Expand
titleXML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user retainSysIds="true">
    <active>true</active>
    <browserAccess>Yes</browserAccess>
    <businessPhone />
    <commandLineAccess>Yes</commandLineAccess>
    <department />
    <email />
    <firstName>Administrator</firstName>
    <lastName />
    <lockedOut>false</lockedOut>
    <loginMethod>Standard</loginMethod>
    <manager />
    <middleName />
    <mobilePhone />
    <passwordNeedsReset>false</passwordNeedsReset>
    <permissions/>
    <sysId>e0bde364c0a802ba0092e79554132023</sysId>
    <timeZone />
    <title />
    <tokens>
        <token>
            <createTime>2022-07-28 17:11:35 -0400</createTime>
            <expiration>20220730</expiration>
            <lastUsed>Never</lastUsed>
            <name>test2</name>
            <userName>ops.admin</userName>
        </token>
        <token>
            <createTime>2022-07-29 12:39:20 -0400</createTime>
            <expiration>20220730</expiration>
            <lastUsed>Never</lastUsed>
            <name>test3</name>
            <userName>ops.admin</userName>
        </token>
        <token>
            <createTime>2022-07-28 17:08:07 -0400</createTime>
            <expiration>20220730</expiration>
            <lastUsed>Never</lastUsed>
            <name>test4</name>
            <userName>ops.admin</userName>
        </token>
        <token>
            <createTime>2022-07-29 12:56:33 -0400</createTime>
            <expiration>20220730</expiration>
            <lastUsed>Never</lastUsed>
            <name>test5</name>
            <userName>ops.admin</userName>
        </token>
    </tokens>
    <userName>ops.admin</userName>
    <userRoles/>
    <webServiceAccess>Yes</webServiceAccess>
</user>

...

Expand
titleJSON
{
    "active": true,
    "browserAccess": "Yes",
    "businessPhone": null,
    "commandLineAccess": "Yes",
    "department": null,
    "email": null,
    "firstName": "Administrator",
    "lastName": null,
    "lockedOut": false,
    "loginMethod": "Standard",
    "manager": null,
    "middleName": null,
    "mobilePhone": null,
    "passwordNeedsReset": false,
    "permissions": [],
    "retainSysIds": true,
    "sysId": "e0bde364c0a802ba0092e79554132023",
    "timeZone": null,
    "title": null,
    "tokens": [
        {
            "createTime": "2022-07-28 17:11:35 -0400",
            "expiration": "20220730",
            "lastUsed": "Never",
            "name": "test2",
            "userName": "ops.admin"
        },
        {
            "createTime": "2022-07-29 12:39:20 -0400",
            "expiration": "20220730",
            "lastUsed": "Never",
            "name": "test3",
            "userName": "ops.admin"
        },
        {
            "createTime": "2022-07-28 17:08:07 -0400",
            "expiration": "20220730",
            "lastUsed": "Never",
            "name": "test4",
            "userName": "ops.admin"
        },
        {
            "createTime": "2022-07-29 12:56:33 -0400",
            "expiration": "20220730",
            "lastUsed": "Never",
            "name": "test5",
            "userName": "ops.admin"
        }
    ],
    "userName": "ops.admin",
    "userRoles": [],
    "webServiceAccess": "Yes"
}

...

"businessPhone": null,
  "commandLineAccess": "-- System Default --",
  "department": null,
  "email": "test@test.com",
  "firstName": "Joe",
  "lastName": "Doe",
  "lockedOut": false,
  "loginMethod": Standard, Single Sign-On",
  "manager": "Administrator",
  "middleName": "M",
  "mobilePhone": null,
  "passwordNeedsReset": false,
  "permissions": [ {
    "allGroups": false,
    "commands": "ALL",
    "defaultGroup": true,
    "nameWildcard": "*",
    "opCreate": false,
    "opDelete": false,
    "opExecute": true,
    "opRead": true,
    "opUpdate": true,
    "opswiseGroups": [],
    "permissionType": "Agent",
    "sysId": "c489750500d444eca9325559d0ef9673"
  } ],
  "retainSysIds": true,
  "sysId": "3de4c72e27c94d4aa840bffcbd7509ca",
  "timeZone": null,
  "title": "Vice President",
  "userName": "test.user",
  "userPassword": "abc123",
  "userRoles": [ {
    "role": {
      "description": "The universal template admin role.",
      "value": "ops_universal_template_admin"
    },
    "sysId": "b8c25922d370438aada276cff669136d"
  }, {
    "role": {
      "description": "The report publishing role.",
      "value": "ops_report_publish"
    },
    "sysId": "fda36f00cc4544bc8f7fbd203290539a"
  } ],
  "webServiceAccess": "-- System Default --"
  }
]

Anchor
Modify a User
Modify a User
Modify a User


Description

URI

http://host_name/uc/resources/user

HTTP Method

PUT

Description

Modifies the User specified by the sysId in the request.
 
To modify User properties without modifying related records, see the excludeRelated property.

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.

User Properties

See User Properties.

User Permission Properties

See User Permission Properties.

User Role Properties

See User Role Properties.

Example Response

  • Status 200 /OK
    Successfully updated the user with sysId <sysId>.

Anchor
Read a User
Read a User
Read a User


Description

URI

http://host_name/uc/resources/user

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

See User Permission Properties.

User Role Properties

See User Role Properties.

Example Response

Anchor
Read a User URI Parameters
Read a User URI Parameters
Read a User: URI Parameters

Name

Description

Specifications

Required

Mutually Exclusive With

userid

Unique ID for this User.


Y
(unless username
is specified)

username

username

Name used within the Controller to identify this User.

Maximum 40 alphanumerics.

Y
(unless userid
is specified)

userid

Optionally Include Personal Access Tokens on User Payloads: User Read API

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.

...

URI Parameters

See Read a User: URI Parameters, below.


 Description

URI

http://host_name/uc/resources/user

HTTP Method

GET

Description

Retrieves information on a specific User.

List the user tokens

Example URI

http://localhost:

8080

9090/uc/resources/user?username=test

.user

&showTokens=true

http://localhost:

8080

9090/uc/resources/user?userid=

c489750500d444eca9325559d0ef9673

Consumes Content-Type

n/a

1234567&showTokens=false

Authentication

HTTP Basic

Produces Content-Type

application

Application/

xml

XML,

application

Application/

json

User Properties

See User Properties.

User Permission Properties

See User Permission Properties.

User Role Properties

See User Role Properties.

Example Response

  • Status 200 /OK
    (See Create, Modify, and Read a User: XML and JSON Examples.)
  • Status 404 /Not Found

    JSON

    Consumes Content-Type


    Example Responses

    • Status 200

      • Successful user details

    • Status 400

      • Error message.

    • Status 403

      • Operation prohibited due to security constraints.

    • Status 404

      • A user with name “{name}” does not exist.

      • A user with id "

    f87848b00a0001037f43e7c81c8ec969
      • {uuid}" does not exist.

    ...

    • Status 500

      • Unexpected request failure. See log(s) for more details.

    Optinally Include Personal Access Tokens on Read a 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

    Unique ID for this User.

    N/A

    UUID of the user

    UUID of the user

    Y

    (unless

    username


    is specified)

    username

    usernameuserid

    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

    Y

    userid

    showTokens

    N/A

    Show tokens

    Boolean

    • True - Includes the Token details

    • False (Default) - Empty Token List

    N



    Anchor
    Revoke Personal Access Token
    Revoke Personal Access Token
    Revoke Personal Access Token


     Description

    URI

    http://host_name/uc/resources/user/token

    HTTP Method

    DELETE

    Description

    Delete the personal access token(s)

    Example URI

    http://localhost:9090/uc/resources/user/token?tokenname=test1&username=abc

    http://localhost:9090/uc/resources/user/token?tokenname=test1&userid=1234567

    Authentication

    HTTP Basic

    Produces Content-Type


    Consumes Content-Type


    Example Responses

    • Status 200


    • Status 400

      • Error message.

    • Status 403

      • Operation prohibited due to security constraints.

    • Status 404

      • A user with name “{name}” does not exist.

      • A user with id "{uuid}" does not exist.

    • Status 500

      • Unexpected request failure. See log(s) for more details.

    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

    username

    N/A

    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
    Properties
    Properties
    Properties

    ...