# How to set up AD FS SAML SSO: Relying party trust, claims rules and metadata

DevFeed: [How to set up AD FS SAML SSO: Relying party trust, claims rules and metadata](<https://devfeed.tech/articles/how-to-set-up-ad-fs-saml-sso-relying-party-trust-claims-rules-and-metadata-117622.md>)

Original publisher: [Read original article](<https://workos.com/blog/adfs-saml-sso-setup>)

Author: WorkOS

Published: 2026-11-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [WorkOS](<https://devfeed.tech/sources/workos-blog.md>)

Topics: [Single sign-on (SSO)](<https://devfeed.tech/topics/sso.md>), [saml](<https://devfeed.tech/topics/saml.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2016](<https://devfeed.tech/tags/2016.md>), [2019](<https://devfeed.tech/tags/2019.md>), [2022](<https://devfeed.tech/tags/2022.md>), [cause](<https://devfeed.tech/tags/cause.md>), [console](<https://devfeed.tech/tags/console.md>), [details](<https://devfeed.tech/tags/details.md>), [failed](<https://devfeed.tech/tags/failed.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [party](<https://devfeed.tech/tags/party.md>), [plus](<https://devfeed.tech/tags/plus.md>), [rules](<https://devfeed.tech/tags/rules.md>), [saml](<https://devfeed.tech/tags/saml.md>), [set](<https://devfeed.tech/tags/set.md>), [sign](<https://devfeed.tech/tags/sign.md>), [sso](<https://devfeed.tech/tags/sso.md>), [trust](<https://devfeed.tech/tags/trust.md>), [up](<https://devfeed.tech/tags/up.md>), [work](<https://devfeed.tech/tags/work.md>)

## AI overview

An AD FS SAML connection requires an administrator to create a claims-aware relying party trust from WorkOS SP metadata, configure claims, and provide AD FS federation metadata to WorkOS. Verify the trust's SAML Assertion Consumer Endpoint matches the connection's ACS URL. The LDAP claims rule should send email and UPN: email is required on the WorkOS profile, while the UPN supplies the AD FS user identifier. Given name and surname are optional and may be null if omitted. Groups are optional for sign-in but needed for group-based role assignment; configure role mappings and test with a user in a mapped group. Group changes reach the app at that user's next SSO sign-in. Alternatively, Directory Sync group-based assignment avoids those limits, and the excerpt recommends using one method. Federation metadata can be entered as a URL or uploaded as XML; file upload requires refreshing it when the signing certificate changes.

## Source excerpt

A step-by-step walkthrough of the AD FS console work behind a SAML SSO connection, plus the claims and metadata details that cause failed sign-ins later.