Page tree


Knowledge Base


Feedback

Have a suggestion for the Armor Knowledge Base?

Send a message to
kb@armor.com.









This API call applies to both Armor Complete and Armor Anywhere users.

The Add User to a Role API adds a user to a role.   

You can use the Get Roles API to find the role ID (id) and the user ID / member ID (id).

Sample Request

POST https://api.armor.com/roles/4/members/3

Input


The following table describes the different parts of this API call: 

API Call / URLMethod / Type
/roles/{id}/members/{userId}POST


The following table describes the parameter (or parameters) for this API call:

ParameterDescriptionFormatRequired or optionalExample
idThe ID for the roleIntegerRequired4
userIDThe ID for the user / memberIntegerRequired3

Sample Return

StatusResponse
200
{
 "roleId": 4,
 "id": 3,
 "firstName": "John",
 "lastName": "Smith",
 "email": "john.smith@example.com",
 "createdDate": "2015-01-07T00:46:24.157",
 "isEnabled": true
}
400
{
 "error": true,
 "message": "Invalid request: User cannot be found for the account"
}