Cloud Administration Enable Hardware Token API
a year ago

Cloud Administration Enable Hardware Token API

The Cloud Administration Enable Hardware Token API allows Help Desk Administrators and Super Administrators to enable a hardware token that is assigned to a user.

A token can be enabled only if it is already assigned to a user.

For information about managing access to this API, see Accessing the Cloud Administration APIs.

Authentication

Clients calling this API must authenticate themselves by including a JSON web token in the request. For instructions on using this token, see Authentication for the Cloud Administration APIs.

Software Developer Kit

You can download the API Software Developer Kit (SDK) from Cloud Administration REST API Download.

Request Requirements

Use the following information to retrieve and enable a hardware token by providing a token serial number.

MethodRequest URLResponse Content TypeResponse BodyResponse Codes
PATCH/AdminInterface/restapi/v1/users/<userId>/sidTokens/enableapplication/jsonToken details with property200, 403, 404, 409, 429, 500

Example Request Data

The following example displays a request.

PATCH /AdminInterface/restapi/v1/users/eb2e12ae-1112-451b-98e1-dfe4e6afd60d/sidTokens/enable

Accept: application/json

Authorization: Bearer <JWT token>

Example Request Body

{

"tokenSerialNumber" : "1231314525"

}

Request Property Descriptions

The following table shows request property descriptions and other associated information.

PropertyDescriptionRequired?Max LengthData Type
tokenSerialNumberThe token serial number associated with a user. The number is displayed at the back of the SecurID700 hardware token.Yes36String

Example Response

The following example response shows the status of a single hardware token with the token serial number specified in the request.

{

"userId": "eb2e12ae-1112-451b-98e1-dfe4e6afd60d",

"tokenSerialNumber": "1231314525",

"tokenStatus": "Enabled",

"tokenStatusChangedBy": "<admin subject>",

"tokenStatusChangedAt": "<2021-06-11T19:10:30.045Z>"

}

Response Property Descriptions

The following table shows response property descriptions and the associated data types.

PropertyDescriptionData Type
userIdIdentifies the user to whom the hardware token is assigned or registered.String
tokenSerialNumberSerial number of the hardware token.String
tokenStatusStatus of the hardware token: Enabled or Disabled.String
tokenStatusChangedByIdentifies the administrator who enabled the hardware token.String
tokenStatusChangedAtThe timestamp when the hardware token was enabled. For information on formatting timestamps in ISO 8601 format, see https://www.w3.org/TR/NOTE-datetime.String

Response Codes

The following table shows response codes and descriptions for this API.

CodeDescription
200Successfully enabled hardware token assigned to the user.
403Not authorized to perform the request.
404Either the user or the hardware token does not exist.
409Cannot enable a hardware token that is not assigned to a particular user.
429Too many requests.
500Internal server error occurred while processing the request.