Legacy | Add Roles to User
Adds one or more roles to the specified user.
Request syntax
Copy
https://mycloud.perfectomobile.com/services/users/<userId>?operation=addRoles&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 adding roles AUTOMATION and PRE_RELEASE to user JohnSmith.
Copy
Request
https://mycloud.perfectomobile.com/services/users/JohnSmith?operation=addRoles&securityToken=<your_token>&roles=AUTOMATION,PRE_RELEASE
Response