Page tree




In This Document 


Was this document useful? 
Your Rating:
Results:
1 Star2 Star3 Star4 Star5 Star
2 rates


Have a suggestion for the Armor Knowledge Base? Send a message to kb@armor.com.



Overview

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

The Delete User from a Role API removes a user from a role. 

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

Sample request

DELETE  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}DELETE

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

ParameterDescriptionFormatRequired or optionalExample
idThe ID of the roleIntegerRequired4
userId / memberIdThe ID of the user / memberIntegerRequired3

Sample return

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