Cloud Administration Assign Hardware Token API
a year ago

Cloud Administration Assign Hardware Token API

The Cloud Administration Assign Hardware Token API enables Help Desk Administrators to assign a single hardware token 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 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 assign a hardware token to a user by providing a token serial number and optional token name.

MethodRequest URLResponse Content TypeResponse BodyResponse Codes
PATCH/AdminInterface/restapi/v1/users/<userId>/sidTokens/assignapplication/jsonUser status200, 400, 403, 404, 409, 429, 500

Example Request Data

The following example displays a hardware token assignment request.

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

Content-Type: application/json

Authorization: Bearer <JWT token>

Example Request Body

{

"tokenSerialNumber" : "000123456789",

"tokenName" : "My SecurID Token 789"

}

Request Property Descriptions

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

PropertyDescriptionRequired?Max LengthData Type
tokenSerialNumberSerial number of the hardware token that is to be assigned.Yes36String
tokenNameName of the hardware token. If not specified, the server automatically sets it to the serial number of the hardware token.No255String

Example Response

The following example response shows the state of a single hardware token with basic assignment related information.

{

"userId": "86beae30-8706-4a41-8b02-d6092ed3f896",

"tokenSerialNumber": "000123456789",

"tokenState": "Activation Pending",

"assignedAt": "2021-06-13T04:38:51.961Z",

"assignedBy": "ed042594-b230-4b68-9191-9bfa759d0866@securid.com"

}

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
tokenStateState of the hardware token: Unassigned, Activation Pending, or Activated.String
assignedAtThe timestamp when the hardware token was assigned to a user or the timestamp when a user registered a token that was not pre-assigned. For information on formatting timestamps in ISO 8601 format, see https://www.w3.org/TR/NOTE-datetime.String
assignedByIdentifies the administrator who has assigned the hardware token.String

Response Codes

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

CodeDescription
200The hardware token is successfully assigned to the user.
400Invalid parameters provided (such as invalid token serial number, token name, 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 (such as expired token, disabled user ID, or hardware token already assigned to the user).

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