> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/user-management/oidc/setup.md).

# Provision roles for Duaer OIDC

After OIDC sign-in works, map the provider’s groups to Duaer roles.
## Sign-in first, then mapping

1. In Settings, set the protocol to OIDC.
2. At the identity provider, configure the client id, secret, issuer URL, and the redirect URL Duaer shows.
3. Confirm people can return from the provider to Duaer, then configure role provisioning.

Role provisioning uses groups in the token or userinfo response. The role dropdown in Settings links its docs here. If the claims have no groups, the mapping table is empty and everyone stays on the default role.

This page covers instance-wide OIDC on a self-hosted Duaer server. To let the members of one Duaer organization sign in with their company account, use [organization SSO](/organizations/sso.md) instead — no instance admin needed.
## Questions

### What does OIDC role provisioning need?

Finish the client, redirect, and claims first, then map the provider’s groups to Duaer roles. Sign-in alone does not make roles follow groups.

### Do I need this page to let one Duaer organization sign in with a company account?

No. This page is instance-wide OIDC for self-hosted Duaer. For one organization, use Duaer organization SSO, set up by its owner or an admin under Settings › Organization SSO.

