The SAML extras module allows to map user fields with simpleSAMLphp attributes during user authentication.
Once attributes are mapped, the module calls the 'hook_simplesamlphp_auth_user_attributes' to save the values into user fields after login.
This module implements the functionality requested in the following sandbox project: SimpleSAMLphp Custom Attribute Mapping