Page tree
Skip to end of metadata
Go to start of metadata

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



  • No labels