Technical Tip: How to configure and use a custom SAML user attribute.
| Description | This article describes how to configure and use a custom SAML user attribute. |
| Scope | Fortiauthenticator 6.5, 6.6. |
| Solution | If an SAML app or SP expects a certain user attribute different from the existing pre-configured ones (DN, sAMAccountName, userPrincipalName, etc.), a custom attribute can be configured, such as a phone number.
This example uses LDAP/AD as the authentication server, but the same logic applies to other auth servers types (Remote Radius Server -> Radius Attribute; Remote Saml Server -> SAML assertion). See Service providers, FortiAuthenticator admin guide.
The following debug commands can be used on a FortiGate to check whether the custom attribute was correctly passed on:
diag debug application saml -1 ...
A SAML trace would show the same information:
...
The LDAP/AD user attribute named mobile with value +49123456789 was correctly converted by FortiAuthenticator into the SAML attribute mobilephoneinfo and passed on to the SP. |


