Skip to content

Add a role to a user ​

User

Adds a role to an existing user

POST
/user/{id}/role

Parameters​

Path Parameters

id*

UserId to which role should be added

Type
string
Required

Request Body​

application/json
JSON
{
  
"data": [
  
  
{
  
  
  
"user_role": [
  
  
  
  
"roles.registered"
  
  
  
]
  
  
}
  
]
}

Responses​

Role has been added to the user. Text containing ‘Done'

Samples​

Gainsight CC Developer Portal