Hinweis: Sie sind auf den Seiten der Moodle 1.9 Dokumentation. Die Dokumentation der aktuellsten Moodle-Version finden Sie hier: Rollen verwalten.

Rollen verwalten

Aus MoodleDocs
Wechseln zu:Navigation, Suche


Baustelle.png Diese Seite ist noch nicht vollständig übersetzt.

Siehe en:Manage_roles

Zu finden unter: Website-Administration > Nutzer/innen > Zugriffsrechte > Rollen verwalten

Die Seite zur Verwaltung von Rollen hat drei Reiter: "Rollen verwalten", "Rechte zur Rollenzuweisung" und "Rechte zur Rollenänderung".

Die Seite "Rollen verwalten" enthält die Liste aller Rollen der Moodle-Installation. Die Spalte "Bearbeiten" enthält Symbole zum Bearbeiten, Löschen und Verschieben innerhalb der Liste. Ein Verschieben innerhalb der Liste beeinflusst die Reihenfolge, in der Rollen angezeigt werden (wo auch immer in Ihrer Moodle-Installation).


Vordefinierte Rollen (Basisrollen)

In der Standard-Installation von Moodle sind bereits sieben Basisrollen vordefiniert:

Eine Rolle bearbeiten

  1. Gehen Sie auf die Seite "Website-Administration > Nutzer/innen > Zugriffsrechte > Rollen verwalten".
  2. Klicken Sie bei der Rolle, die Sie bearbeiten möchten, auf das Symbol "Bearbeiten".
  3. Auf der Bearbeitungsseite der gewählten Rolle ändern Sie die Zugriffsrechte Ihren Anforderungen entsprechend.
  4. Abschließend klicken Sie den Button "Änderungen speichern" ganz unten auf der Seite.

Eine neue Rolle hinzufügen

  1. Gehen Sie auf die Seite Website-Administration > Nutzer/innen > Zugriffsrechte > Rollen verwalten.
  2. Klicken Sie auf den Button Neue Rolle hinzufügen.
  3. Auf der Bearbeitungsseite der neuen Rolle vergeben Sie einen Namen. Wenn Sie den Rollennamen mehrsprachig verwenden wollen, verwenden Sie die Syntax für mehrsprachigen Inhalt, z.B. <span lang="en" class="multilang">Teacher</span> <span lang="es_es" class="multilang">Profesor</span> <span lang="de" class="multilang">Lehrer/in</span>. Voraussetzung ist jedoch, dass der Filter Mehrsprachiger Inhalt auf Ihrer Moodle-Installation aktiviert ist.
  4. Geben Sie der neuen Rolle eine sinnvolle Kurzbezeichnung. Diese wird von anderen Moodle-Plugins als Verweis auf die Rolle benötigt.
  5. Beschreiben Sie die neue Rolle (optional).
  6. Setzen Sie die Zugriffsrechte gemäß Ihren Anforderungen.
  7. Klicken Sie den Button Änderungen speichern ganz unten auf der Seite.

Eine Rolle duplizieren

Moodle1.8

Ab Moodle 1.8. kann man eine neue Rolle sehr einfach und schnell dadurch anlegen, dass man eine Kopie einer bereits existierenden Rolle anlegt (Rolle duplizieren).
  1. Gehen Sie auf die Seite Website-Administration > Nutzer/innen > Zugriffsrechte > Rollen verwalten.
  2. Klicken Sie auf die Rolle, die Sie duplizieren möchten, z.B. Teilnehmer/in.
  3. Auf der Ansichtsseite der gewählten Rolle klicken Sie den Button Diese Rolle duplizieren.
  4. Beantworten Sie die Frage Sind Sie sicher, dass Sie die Rolle X duplizieren wollen? mit Ja (klicken Sie den entsprechenden Button).
  5. Die Liste der Rollen enthält nun eine neue Zeile Rolle X Kopie 1.
  6. Wenn nötig, bearbeiten Sie die neue Rolle entsprechend Ihren Anforderungen.

Rechte

There are four settings for each capability:

Not Set
This is the default value for all permissions when a new role is created.
Allow
By choosing this you are granting permission for this capability to people who are assigned this role. This permission applies for the context that this role gets assigned plus all "lower" contexts. For example, if this role is a student role assigned to a course, then students will be able to "start new discussions" in all forums in that course, unless some forum contains an override or a new assignment with a Prevent or Prohibit value for this capability.
Prevent
By choosing this you are removing permission for this capability, even if the users with this role were allowed that permission in a higher context.
Prohibit
This is rarely needed, but occasionally you might want to completely deny permissions to a role in a way that can NOT be overridden at any lower context. An example of when you might need this is when an admin wants to prohibit one person from starting new discussions in any forum on the whole site. In this case they can create a role with that capability set to "Prohibit" and then assign it to that user in the system context.

Legacy role types

  • Legacy role types were implemented for backward compatibility.
  • Selecting a legacy role type in 1.8 (or allowing a legacy capability in 1.7) does NOT provide a new role with all capabilities of a pre-Moodle 1.7 role.
  • It is recommended that a legacy role type is selected only for roles that are similar to pre-Moodle 1.7 student/teacher/admin/creator roles.
  • It is not necessary to select a legacy role type unless using old 3rd party code that was not designed for Moodle 1.7 and doesn't yet support roles.

New role considerations

A newly-created role does not have the ability to assign or override any other roles. This is true even when the new role is a copy of a role that had such abilities. If such ability is needed, the administrator must grant it explicitly (Site administration -> Users -> Permissions -> Define roles -> Allow role assignments and Allow role overrides tab).

A new role is not automatically listed in course descriptions even if was created by copying a role that is listed, such as Teacher. If you want the new role to appear in the course listing, you must set it explicitly via Administration > Appearance > Course managers.

Testing a new role

In Moodle 1.9 and later, you can use the "Switch roles to..." menu in the upper right corner of each course page to test the new role. Since switching roles confines you to those roles you can assign in a course context, this method is only useful for testing course-scoped capabilities (i.e., it will not be useful for testing permissions that apply outside the course context, like moodle/user:edit).

In Moodle 1.7.x and 1.8.x role changes take effect only after the next login from that user, so new roles may not be tested using the "Switch role to..." feature.

In any version of Moodle with roles, you can always create test user and assign the new role to them. Then logout as admin and login as the test user.

Example roles

  • Inspector - for providing external inspectors with permission to view all courses (without being required to enrol)
  • Parent - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees
  • Demo teacher - for providing a demonstration teacher account with a password which can't be changed
  • Forum moderator role - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums
  • Keyholder role - for setting the person named as holding a course enrolment key
  • Calendar editor role - for enabling a user to add site events to the calendar
  • Blogger role - for limiting blogging to specific users only

See also