Add/Remove User from SAV ROLE
POST/addremoveuserfromrole
This method grants/removes membership of a "user" to one or more roles in SSM.
The Authorization must have Bearer followed by Token.
Mandatory params:
username - Username for the user to whom the roles are to be granted,
rolename - comma separated values with names of roles that need to be granted,
operation (0/1) - 0:Remove and 1:Add
Request
Responses
- 200
Add Remove User from Sav Role - Success / Add/Remove User from SAV ROLE - Failure
Response Headers
- Date - string 
- Server - string 
- Set-Cookie - string 
- Transfer-Encoding - string 
- X-Frame-Options - string 
- application/json
- Schema
- Example (from schema)
- Add Remove User from Sav Role - Success
- Add/Remove User from SAV ROLE - Failure
Schema
errorCode string
message string
{
  "errorCode": "0",
  "message": "success"
}
{
  "errorCode": "0",
  "message": "success"
}
{
  "errorCode": "1",
  "message": "Bad Request. Association Between User 'johndoe' and role 'ROLE_MANAGER' already exists."
}
Loading...