Cloud Administration Unassign Hardware Token API
a year ago

Cloud Administration Unassign Hardware Token API

The Cloud Administration Unassign Hardware Token API enables Help Desk Administrators to unassign a single hardware token from 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 a request. For instructions on using this token, see Authentication for the Cloud Administration REST 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 unassign a hardware token assigned to a user by providing a token serial number as the input.

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

Example Request Data

The following example displays a hardware token unassignment request.

PATCH /AdminInterface/restapi/v1/users/<userId>/sidTokens/unassign

Content-Type: application/json

Authorization: Bearer <JWT token>

Example Request Body

{

"tokenSerialNumber" : "000123456789"

}

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 state of a single hardware token that was unassigned from a user.

{

"tokenSerialNumber": "000123456789",

"tokenState": "Unassigned"

}

Response Property Descriptions

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

PropertyDescriptionData Type
tokenSerialNumberSerial number of the hardware token.String
tokenStateState of the hardware token: Unassigned, Activation Pending, or Activated.String

Response Codes

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

CodeDescription
200The hardware token is successfully unassigned from the user.
400Invalid parameters provided (such as invalid token serial number or user ID format).
403User is not authorized to perform the request. (Possible causes: Lack of administrator rights or invalid JSON web token provided).
404Either the user ID or the hardware token serial number does not exist.
409

The request has inconsistent or conflicting state preventing it from getting completed. (Possible causes: The hardware token is not assigned to a specific user or vice versa).

429Too many requests.
500The request cannot be completed due to an internal server error.