saml_rules
SAML Rules is a module designed to interact with the SAML Authentication module as part of a robus Drupal handling of SAML accounts and sessions. The goal is to provide a series of rules and conditions that allow administrators to assign values to user profiles (including roles) based on attributes passed by the SAML service.
You can create Authentication rules for actions to be done when a user logs in. This includes tasks such as role assignment based on attribute value or altering the email address of a user when they are logged in to ensure there is a unique email address for each created account. This later example is especially for some SAML services where the same or no email address is passed as part of the authentication attributes.
You an also create User Field Assignment rules. With this you can map SAML attribute data to custom user profile fields.
Both are done by tokenizing the SAML attribute fields so that a very custom system of assigning values to user profiles is possible.
This module works with the SAMLAuth module as part of a robust, SAML based single sign on solution.