Nextcloud SSO with Okta (SAML)

Connect Okta as a custom SAML IdP to Nextcloud’s SSO & SAML authentication app.

Last updated

On this page (5)

Nextcloud · Okta · SAML

Before you start

  • Compatible Nextcloud server and user_saml app.
  • Okta admin access to create and assign custom SAML apps.
  • HTTPS and a tested local admin recovery path.

Configure sign-in

  1. Enable SSO & SAML authentication (user_saml) in Nextcloud and open its administration settings. Read the service-provider entity ID and assertion consumer service (ACS) URL from the app’s metadata for your public HTTPS hostname. Copy the actual metadata values, particularly if Nextcloud runs under a URL prefix or reverse proxy.
  2. In Okta Applications, create a custom SAML 2.0 integration. Paste the ACS into Single sign-on URL and the SP entity ID into Audience URI (SP Entity ID). Require application assignment and assign a small pilot group. Save the signing certificate and IdP metadata for this app.
  3. Add a dedicated attribute statement from an Okta profile field that matches the actual Nextcloud UID. On an existing server, compare it with a real internal UID before selecting the field; the display name, email and SAML NameID need not match. Set Attribute to map the UID to to the outgoing attribute name. Populate the IdP entity ID, SSO endpoint and signing certificate from Okta metadata.
  4. If Nextcloud already uses LDAP, keep the existing user backend during the pilot and verify the configured account-matching behavior. An unexpected empty Files view often means the login reached a different UID rather than that data was deleted. Stop and fix the mapping instead of copying files to a newly created account.

Verify the result

  • Confirm the established user lands in the same file and share namespace; verify whether the selected Nextcloud backend requires an existing user or creates one on first login.
  • Test unassigned users, WebDAV/sync clients, browser logout on both systems, and disabling an Okta user with active Nextcloud sessions or app passwords. Do not equate Okta assignment with provisioning or complete revocation.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Nextcloud with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.