Nextcloud SSO with Microsoft Entra ID (SAML)
Federate the Nextcloud user_saml app to an assigned Entra enterprise application with a carefully mapped Nextcloud UID.
Last updated
On this page (5)
Nextcloud · Microsoft Entra ID · SAML
Before you start
- Supported Nextcloud/user_saml versions, HTTPS and local recovery login.
- Entra enterprise app administrator.
Configure sign-in
- Use Nextcloud SP metadata to populate the Entra SAML Identifier and Reply URL, then import or transcribe the federation metadata values into Nextcloud, including the IdP signing certificate.
- Emit a UID claim matching the backing user ID for existing users. Use an immutable Entra object ID only if it matches the intended identity model; do not replace old UIDs with object IDs without a migration.
- Map optional display name and email separately from UID and restrict the enterprise app to pilot users before enabling it broadly.
Verify the result
- Confirm old files and shares appear under the same UID after login and after an email rename. Test an unassigned user and an account missing the UID claim.
- Verify app-password/WebDAV behavior, local versus IdP logout and disabling an Entra user with a live Nextcloud session; decide separately whether the backend provisions users.
