# core.role

# RoleModule ⇐ Module

Functions for assigning and unassigning user roles.

Kind: global class
Extends: Module
Since: 0.2.1

# roleModule.assignRoles(...assignments) ⇒ Promise.<FunctionResponse>

Assigns roles to users.

Kind: instance method of RoleModule
Returns: Promise.<FunctionResponse> - The response returned by Moodle.
Since: 0.2.1

Param Type Description
...assignments Array.<RoleAssignment> The roles to assign to users.

# roleModule.unassignRoles(...unassignments) ⇒ Promise.<FunctionResponse>

Unassigns roles from users.

Kind: instance method of RoleModule
Returns: Promise.<FunctionResponse> - The response returned by Moodle.
Since: 0.2.1

Param Type Description
...unassignments Array.<RoleAssignment> The roles to unassign from users.