Associates the user to the given group roles

Prev Next
Post
/api/v1/users/{userId}/grouproles
Security
HTTP
Type bearer
Path parameters
userId
stringRequired

The ID of the user

Body parameters

The IDs of the group roles to associate with the user

object
groupRoleObjectGUIDs
Array of string
string
Responses
200

OK

Expand All
object
authorization
boolean
data
object
groupRoles
Array of object
object
fState
string
groupRoleName
string
groupRoleObjectGUID
string
message
string
opStatus
string
Valid values[ "success", "failure", "pending" ]
error_code
integer
error_message
string
error_status
boolean
Examplefalse
401

Unauthorized

object
error_code
integer
error_message
string
error_status
boolean
403

Forbidden - Group disassociation in pending state

Expand All
object
authorization
boolean
Exampletrue
data
object
message
string
error_code
integer | null
error_message
string | null
error_status
boolean
404

Not Found

Expand All
object
authorization
boolean
Exampletrue
data
object
message
string
error_code
integer | null
error_message
string | null
error_status
boolean
500

Internal Server Error

Expand All
object
authorization
boolean
Exampletrue
data
object
message
string
error_code
integer | null
error_message
string | null
error_status
boolean