Use of Expert Rules
In case of more complicated visibility or access rules you can also use the expert mode. You can e.g. limit a course element's access to a specific user name. It is also possible to interrelate several restrictions to each other. Just click on "Display expert mode" in the tabs "Visibility" and "Access" in order to define your expert rules in the box provided.
Configuration of Expert Rules
Expert rules certify if there is an attribute with a specific value.
Attribute | Description | Example Expert rule |
---|---|---|
isGuest | accessible only for guests | isGuest(0) |
isCourseCoach | available only for users coaching a group | isCourseCoach(0) |
isUser | available only for one specific user | isUser("pmuster") |
In the tabs "Visibility" and "Access" there will be more examples of expert rules within the context-sensitive Help.
There are various options to interrelate single rules to each other. The two most important operators to combine attributes are:
- AND conjunction: &
- OR conjunction: |
Please note that an OR conjunction precedes an AND conjunction. In order to handle an AND conjunction first you have to use brackets.
Example: The expert rule (inGroup("Participants IntensiveCourse") & isCourseCoach(0)) means that either participants of an intensive course or all coaches of groups will have access to a course element.
Use of AAI Attributes
If you are enrolled at swiss academia or any other institution with access to an AAI infrastructure, by means of AAI attributes you can set access rules within a course to make sure that only course participants with specific user attributes (e.g. members of a certain organization) will have access to your course material. AAI means "Authentication and Authorization Infrastructure" and allows university members to use systems of other participating institutions with only one user name and password. For further information on AAI please go to e.g. Switch or to Deutsches Forschungsnetz .
Available attributes and possible values are described in the AAI Attribute Specification on the Switch and the DFN-AAI site (in german). The two most common attributes at swiss universities can be found in the following table along with examples of their corresponding expert rules:
Attribute | Description | Example Expert rule and Explication |
---|---|---|
swissEduPerson-HomeOrganization | University or home organization | hasAttribute ("swissEduPersonHomeOrganization", "uzh.ch"): only members of the Zurich University will get access. |
swissEduStudyBranch3 | Field of study, 3rd classification | hasAttribute ("swissEduPersonStudyBranch3","6400"): only veterinary medicine students will have access. |
For further information on attribute values or the application of AAI attributes in Switzerland please go to Switch, and for Germany go to Deutsches Forschungsnetz.