Parameters
Note that the parameters are provided as an array, as opposed to an object.List of user ids
List of roles to be assigned to the provided user ids
“Exclusive” flag, where if set to true, the roles are assigned to all users except the provided list of user ids.
addRoles([userIds], [roles], exclusive)
from the JavaScript SDK.