Legacy | Remove Roles from User

Removes one or more roles from the specified user.

Request syntax

Copy
https://mycloud.perfectomobile.com/services/users/<userId>?operation=removeRoles&securityToken=value&roles=value

Parameters

Name Type Default Description
securityToken* string
A unique cryptographic key assigned to an authorized user.
user string

Deprecated. The name of the user running the operation.

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
password string

Deprecated. The password for the user.

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
responseFormat string json The format to use for the response: json or xml
roles* string
The roles to add to the user specified as a comma separated list.

* Mandatory parameter

Response

Name Description
status success if the operation completed successfully; otherwise failure.

Examples

This example shows the request for removing roles AUTOMATION and PRE_RELEASE to user JohnSmith.

Copy

Request

https://mycloud.perfectomobile.com/services/users/JohnSmith?operation=removeRoles&securityToken=<yourToken>&roles=AUTOMATION,PRE_RELEASE
Copy
Response
{
    "status":"success"}