Skip to main content

Parameters

Note that the parameters are provided as an array, as opposed to an object.
0
string[]
required
List of user ids
1
string[]
required
List of roles to be assigned to the provided user ids
2
bool
default:false
“Exclusive” flag, where if set to true, the roles are assigned to all users except the provided list of user ids.
The request body mirrors the function signature of addRoles([userIds], [roles], exclusive) from the JavaScript SDK.