core:GenerateGroups
This filter creates a group attribute based on the contents of the other attributes of the user.
By default this filter will generate groups from the following set of attributes:
eduPersonAffiliationeduPersonOrgUnitDNeduPersonEntitlement
This can be overridden by specifying the names of the attributes in the configuration.
It will attempt to determine a realm the user belongs to based on the eduPersonPrincipalName
attribute, if it is present.
The groups this filter generates are on the form <attribute name>-<attributevalue> and <attributename>-<realm>-<attributevalue>.
For example, if the user has the following attributes:
eduPersonPrincipalName:user@example.orgeduPersonAffiliation:student,member
The following groups will be created:
eduPersonAffiliation-studenteduPersonAffiliation-membereduPersonAffiliation-example.org-studenteduPersonAffiliation-example.org-member
1 Examples
Default attributes:
'authproc' => array(
50 => array(
'class' => 'core:GenerateGroups',
),
),
Custom attributes:
'authproc' => array(
50 => array(
'class' => 'core:GenerateGroups',
'someAttribute',
'someOtherAttribute',
),
),
