# SAML ADFS SSO Login

**URL:** <https://forum.mattermost.com/t/saml-adfs-sso-login/15920>\
**Category:** Troubleshooting\
**Created:** [May 16, 2023, 5:27am UTC](https://forum.mattermost.com/t/saml-adfs-sso-login/15920 "2023-05-16T05:27:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![draxinor](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@draxinor](https://forum.mattermost.com/u/draxinor)\
**Post date:** [May 16, 2023, 5:27am UTC](https://forum.mattermost.com/t/saml-adfs-sso-login/15920/1 "2023-05-16T05:27:19Z")

</div>

I have an on-prem system.  
Version 7.0.1, have also tried 7.10.0  
External Postgresql Database  
ADFS 2016  
User created in AD

Acounts and groups are synced via LDAP.

Try and login via SAML, the process flows through, the user is created in the Mattermost system, the user ends up back at the login page.

I have the standard described Claims and transforms  
Claims  
E-Mail-Addresses → Name ID  
E-Mail-Addresses → Email  
sAMAccountName → Username  
Given-Name → FirstName  
Surname → LastName

Transform  
Name ID → E-Mail Address
