Expert rules for checking user attributes
General user attributes
The following user attributes are available in the learning platform and can be used for expert rules:
Attribut | Contains the user-specific value |
---|---|
firstName | First name |
lastName | Last name |
username / userid | User name |
Email address | |
institutionalName | Institution / University |
institutionalUserIdentifier | Matriculation number / User number at the institution |
standort | Location |
termsOfStudy | Term of study |
studySubject | Study programme |
studyGroup | Study group |
orgUnit | Organisation unit |
Checking for a user attribute
Syntax in general | Example of an expert rule | Result of this rule |
---|---|---|
isInAttribute("[AttrName]","[string]") | isInAttribute("studySubject","Chemistry")
| If this rule has been defined in the tab Access, the course element is accessible for all persons whose attribute Study programme contains the letter sequence "Chemistry". This means that users with the study programme “Chemistry BA" or “Chemistry MA" can use the course element. Users with the study subject “Chemical water treatment”, however, cannot. |
getUserProperty("[string]") | getUserProperty("orgUnit") = "Marketing"
| Only users from the "Marketing" organisation unit can see the course element if this rule has been used in the Visibility tab.. |
hasAttribute("[AttrName]","[string]") | hasAttribute("email","muster.mann@opal.de") | Only a user with this email address will get access to the course section. |