Usergroup Generation 

Use setfixed as the first, the registration process name (upper case) as the second parameter and ' usergroup as the third parameter.

Example:

Example setfixed.ACCEPT.usergroup
setfixed.ACCEPT.usergroup {
   10.uid = 3
   10.file = fileadmin/Mitglieder.xml  
}
Copied!

Meanings of the array lines :

Properties 

uid 

uid

uid
Type
integer

The database table field uid of fe_groups. This is the uid of the FE user group.

file 

file

file
Type
string

File name of the XML file for member comparison. See example file Resources/Public/Examples/tx_agency_members.xml. The xml file uses the table field names of fe_users as the leaf names. The fields cnum, last_name, email and php:zip are required.

When a user registers himself, then a different user group will be used if the user's customer number (cnum) is already present in a XML file and if the following conditions are matched : The entered customer number must fit the cnum of the XML file and then it is checked if either the last names are equal or if otherwise both the zip codes and the emails are equal. The XML uses Row tags inside of the Members tag. XML format :

EXT:agemcy/Resources/Public/Examples/tx_agency_members.xml
<?xml version="1.0" ?>
<Members>
  <Row>
  	<cnum>00001</cnum>
  	<last_name>Mustermann</last_name>
  	<zip>80100</zip>
  	<email>max.mustermann@mail.de</email>
  </Row>
  <Row>
  	<cnum>00002</cnum>
  	<last_name>Musterfrau</last_name>
  	<zip>80200</zip>
  	<email>susi.musterfrau@mail.dk</email>
  </Row>
</Members>
Copied!