Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Assign roles.

Assign roles

From MoodleDocs
Revision as of 16:37, 20 March 2007 by Helen Foster (talk | contribs) (→‎Hidden assignments: removing 1.8 template)


By assigning a role to a user in a certain context, you grant them the permissions contained in that role for the current context and all lower contexts.

Location

  • System context: Administration > Users > Permissions > Assign roles
  • Site context: Administration > Front Page > Front Page roles
  • Course category context: Assign roles link in course categories page
  • Course context: Assign roles link in course administration block
  • Module context: Roles tab in editing activity page
  • Block context: Assign roles link in course block (editing on)
  • User context: Roles tab in user profile page

The Inspector role is an example of a role assigned in the system context. The Parent role is an example of a role assigned in the user context.

Assigning a role

  1. Choose the type of role you wish to assign. For example, if we wanted to assign a Course Creator role to Ali, we'd choose "Course Creator" from the drop-down list. ("Course Creator" is one of the pre-defined role types that comes with Moodle - your installation may have a modified set of roles.)
  2. Once you have chosen a role, two lists appear: a list of users who currently have that role, and a list of users who don't. We can select Ali in the second list, and use the left-facing arrow button to add Ali's account to the list of Course Creators. Multiple users may be selected by holding down the Apple or Ctrl key whilst clicking on the users' names.
Assigning users the role of student i.e. enrolling them on the course

Hidden assignments

  • To hide which role a user is assigned to, click the Hidden assignments check box before assigning the role to the user.
  • This feature is useful for example if you don't want everyone with teacher rights listed in the course description.
  • Note: The role assignment is not hidden from admins or teachers i.e. users with the viewhiddenassigns capability.

See also