Session API
Remove Roles
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.
removeRoles([userIds], [roles], exclusive) from the JavaScript SDK.