Session API
Add 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 assigned to the provided user ids
bool
default:false
“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.