Skip to main content

Parameters

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