Single sign-on (SSO) and SCIM
Nootion can let people sign in with their company account, through any OpenID Connect provider: Microsoft Entra ID (formerly Azure AD), Google Workspace, Okta, Keycloak, Authentik… With SCIM, the provider can also create accounts and disable people who leave, within minutes.
Everything is set in Administration > Single sign-on (SSO). This guide walks through Microsoft Entra ID; other providers ask for the same things under other names.
#1. Register Nootion in Entra ID
In the Entra admin center, as an administrator who can register applications:
- Applications > App registrations > New registration.
- Name:
Nootion. - Supported account types: Accounts in this organizational directory only (single tenant).
- Redirect URI: platform Web, and the address shown in Nootion under "Redirect URI":
https://<your Nootion>/api/auth/sso/callback.
- Name:
- On the app's Overview, note the Application (client) ID and the Directory (tenant) ID.
- Certificates & secrets > New client secret. Copy its Value (not its ID) right away. A secret lasts 24 months at most: put a reminder in your calendar to make a new one before it runs out, and paste it in Nootion.
- API permissions: the default
User.Readis enough; Nootion asks foropenid,profileandemail, which need no admin consent. - Optional, to let only some people in: Enterprise applications > Nootion > Properties > Assignment required? Yes, then Users and groups > Add user/group.
#2. Set it in Nootion
In Administration > Single sign-on (SSO):
| Field | Value |
|---|---|
| Button name | Microsoft (the button reads "Sign in with Microsoft") |
| Issuer URL | https://login.microsoftonline.com/<tenant ID>/v2.0 |
| Client ID | the Application (client) ID |
| Client secret | the secret's Value |
Then:
New accounts: who gets an account the first time they sign in.
- Only existing accounts and invited people (the default): accounts that already exist are linked by their e-mail address, and invitations work as usual (by address, or with the link, followed by "Sign in with Microsoft").
- Anyone with an address in these domains, e.g.
contoso.com. - Anyone who can sign in at the provider: with "Assignment required" in Entra, that is the people and groups assigned to the app.
They arrive as (for the last two): Member, the default, or Guest: they then see nothing until a page is shared with them, and an administrator can make them members later. People invited on a page as guests (see EDITOR.md) can also sign in with the provider; they stay guests.
SSO session length: 12 hours by default. After that, people go through Microsoft again: a click if they are still signed in there, the door closed if their account was disabled.
Allow passwords too: turn it off to make SSO the only way in. Administrators can always still sign in with their password ("Administrator? Sign in with a password" on the sign-in page), so a broken setup or an expired secret doesn't lock everyone out.
Link existing accounts by their e-mail address: see below.
Save, then click Try signing in.
#Linking existing accounts
The first time someone signs in with SSO, Nootion looks for an account with the same e-mail address and links it to them; from then on they are recognised by the provider's id. This is what lets the people who already had a password account, administrators included, move to SSO without doing anything.
It is safe as long as the provider decides which address a person has: Entra ID with a single tenant (as set up above), Google Workspace, an Okta or Keycloak directory you run. It is not when people can pick their own address at the provider without proving it is theirs (a provider open to anyone, a Keycloak with free sign-up and no e-mail verification…): someone could type an administrator's address there and get their Nootion account. In that case, turn Link existing accounts by their e-mail address off: existing accounts keep signing in with their password, and SSO only makes new accounts.
Whatever the setting, an address the provider marks as not verified (email_verified: false) is refused: it
neither links an account nor makes one. Nootion itself doesn't need to send e-mail for any of this.
#Other providers
The fields are the same everywhere; only the issuer URL and where to find the client change.
| Provider | Issuer URL | Where the client is made |
|---|---|---|
| Google Workspace | https://accounts.google.com |
Google Cloud console › APIs & Services › Credentials › OAuth client ID (Web application) |
| Okta | https://<your org>.okta.com |
Applications › Create App Integration › OIDC, Web Application |
| Keycloak | https://<host>/realms/<realm> |
Clients › Create client, with "Client authentication" on |
| Authentik | https://<host>/application/o/<app slug>/ |
Applications › Providers › OAuth2/OpenID Provider |
Give each the redirect URI shown in Nootion, and allow the openid, profile and email scopes. With Google,
pick Anyone with an address in these domains with your Workspace domain rather than Anyone who can sign in,
which would be every Google account.
Notes:
- Nootion asks the provider for its settings at
<issuer>/.well-known/openid-configuration, then checks every sign-in with the provider's keys: the Nootion server must be able to reachlogin.microsoftonline.comover HTTPS. People's browsers go there anyway. - Use the tenant ID in the issuer, not
commonororganizations: only accounts of your organization can then sign in. - Accounts are recognised by the provider's id after the first sign-in: someone whose address changes keeps their account.
- Accounts made through SSO have no password. "Forgot password" sends nothing to them while passwords are off.
#3. Disable people who leave, and keep groups: SCIM
With SCIM, Entra tells Nootion when someone is added to the app, renamed, disabled or removed. Nootion then creates the account, keeps its name and address up to date, or disables it and signs it out everywhere. Accounts are never deleted this way, only disabled, so what people wrote stays; an administrator can delete them in Administration.
- In Nootion, in the SCIM part of the SSO settings, click Turn on and make a token. Copy the token: it is shown only once.
- In Entra: Enterprise applications > Nootion > Provisioning > Get started, mode Automatic:
- Tenant URL: the "Tenant URL" shown in Nootion,
https://<your Nootion>/api/scim/v2. - Secret token: the token.
- Test connection, then Save.
- Tenant URL: the "Tenant URL" shown in Nootion,
- Under Mappings, the user mappings can stay as they are: Nootion uses
userNameandemails(the address),displayName(the name),activeandexternalId. Leave Provision Microsoft Entra ID Groups on to bring the groups assigned to the app: they become Nootion groups (see EDITOR.md), with the same members, and owners can share spaces and pages with them. Nootion usesdisplayName,externalIdandmembers. Turn it off to make groups only in Nootion. - Under Settings, scope: Sync only assigned users and groups (recommended).
- Start provisioning. Entra then syncs every 40 minutes or so; "Provision on demand" pushes one person at once.
Accounts that already exist in Nootion are matched by their e-mail address, so turning SCIM on later is fine. Nootion never lets SCIM disable its last administrator. A group removed in Entra is deleted in Nootion: what it opened closes, the accounts of its members stay. Guests are never put in a group.
#When Nootion isn't reachable from the internet
Signing in works on a private network: it is the browser that goes to Microsoft and comes back. SCIM is different: it is Entra, in Microsoft's cloud, that calls Nootion. If Nootion is only reachable inside the company network, either:
- install Microsoft's provisioning agent on a Windows server of the network, which relays the SCIM calls inside it (Entra ID P1 or P2 needed): see Microsoft's guide "Microsoft Entra on-premises application provisioning to SCIM-enabled apps", and give it the same tenant URL and token; or
- go without SCIM, and keep the SSO session length short: someone disabled in Entra can't sign in again, and loses access at the latest when their session ends.