For administrators

Sign-in providers

The identity providers people sign in with, and the groups they keep in step.

What this is

Next to internal accounts (see Sign-in settings), people can sign in with Google, Microsoft, Smartschool, or any OpenID Connect or OAuth2 provider. A provider only signs in addresses on its own domains. A groups claim can keep groups (classes, teams) in step at every sign-in. Apps see the same identity whichever provider was used.

Where to find it

  1. Open Admin.
  2. Click the card People & access, then Sign-in providers.

What you see

A button Add provider, and a table. With nothing set up it says "No providers yet: people sign in with an internal account."

  • Provider: the name and the kind (OpenID Connect or OAuth2), plus directory sync or syncs groups when groups are kept in step. A pill off or incomplete shows a provider that cannot be used right now. Google is listed as "Google Workspace · built in".
  • For: the email domains it signs in.
  • Newcomers get: the role a new person from this provider receives, or "the default role".
  • People: how many people signed in through it.
  • An actions menu. For a provider: Edit…, Groups and roles…, Test sign-in, Switch off or Switch on, Remove…. For Google: Edit…, Switch off or Switch on, Remove….

The provider form

The window shows the redirect address to register at the provider, with a copy button. For a new provider it appears after the first save.

  • Name on the button: the label on the sign-in page.
  • Kind: OpenID Connect (finds its own addresses) or OAuth2 with a userinfo endpoint.
  • For OpenID Connect, Issuer: your own tenant or realm, never a shared "common" endpoint. The button Check issuer looks up the provider's addresses and reports "Found it: ...".
  • For OAuth2, Authorization URL, Token URL and Userinfo URL, found in the provider's OAuth documentation.
  • Client id and Client secret. A stored secret shows "Stored. Type a new one to replace it."
  • E-mail domains it signs in: for example school.be, leerling.school.be. Only addresses on these domains get in through this provider.
  • Newcomers get the role: a role, or "The platform's default (or a domain rule)".
  • Groups claim: the claim that carries groups, for example groups. Several claims, separated by spaces, are read as one list. Empty keeps groups by hand.
  • Trust its addresses without an email_verified claim: tick it for providers that never send this claim, such as Microsoft and most OAuth2 providers. The domains above still apply.
  • Folded under Claims and scopes: Scopes, Subject claim (never changes for a person; how a renamed address still finds them), E-mail claim (a claim name or a dotted path such as user.email), First name claim, Last name claim, Picture claim, and Client secret is sent (In the request body or As HTTP Basic authentication).

The starting points in Add a sign-in provider are Google Workspace, Microsoft Entra ID, Smartschool, Other OpenID Connect and Other OAuth2. Microsoft Entra ID and Smartschool fill in the claim names and options that are the same for every tenant or school; the address of your tenant or school is yours to enter.

Groups and roles

Groups and roles… on a provider opens Groups of the provider's name:

  • Which groups are kept in step: Only the groups switched on below, or Every group a sign-in names. For a school tenant, every Team and mailing list would become a group with the second option.
  • Synced groups (n): per group the members, the roles its members get (click the roles to change them, then Save) and a Synced checkbox. Switching it off asks Stop syncing ...?: members leave the group now, with the roles and app access it gives. The group and its settings stay for when you switch it on again.
  • Add a group: search a Microsoft Entra directory by name or object id and click Sync this group, or, without a directory sync, enter the Id at the provider and Name here (e.g. Leerkrachten) and click Add group. Test sign-in shows the ids a provider sends.

For a Microsoft provider there is also:

  • Microsoft Entra directory: a checkbox Read the directory through Microsoft Graph. It imports the members of every synced group as invited accounts and links them to the account they already have, every hour, so apps can be shared with a class before anybody signs in. Buttons: Check permissions and Sync now. After a sync, Last sync gives a summary: people and groups seen, imported, linked, joined, left, switched off or on again, and who was left out and why.
  • Switch off people who are in none of the synced groups any more: for students and staff who leave. The sync reverses it when they come back; administrators are never switched off. Ticking it asks Switch off people who leave? and a sync that would switch off a large part of everybody at once switches off nobody.
  • Access by Entra group: Allowed groups and Denied groups, each with the group's name and object id and a Remove button. Add group takes an Object id and a Name, with Add to allowed and Add to denied; Search for a group in Entra adds Allow and Deny. Check user takes an Email address and tells you whether that person would be allowed, and through which group.

How to add Google

  1. In your Google Cloud project, create an OAuth client of type "Web application".
  2. In cyantula click Add provider, then Google Workspace.
  3. Copy the redirect address from the window and register it on the OAuth client in Google Cloud.
  4. Fill in Google OAuth client ID (it looks like ...apps.googleusercontent.com) and Google OAuth client secret.
  5. Fill in Google Workspace domains that may sign in, comma-separated, for example example.com. Empty refuses every Google sign-in.
  6. Make sure Sign in with Google is on, and click Save.

Google turns on as soon as a client and at least one domain are filled in. The row shows incomplete until then. Switching Sign in with Google off keeps all values but takes the Google button off the sign-in page.

How to add a Microsoft Entra ID provider

  1. At Microsoft, register an app in your tenant. Add the redirect address from cyantula to it, create a client secret, and note the tenant id.
  2. In the app registration, under Token configuration, add a groups claim: Security groups (or Groups assigned to the application).
  3. In cyantula click Add provider, then Microsoft Entra ID.
  4. Set Issuer to https://login.microsoftonline.com/<tenant id>/v2.0, then click Check issuer.
  5. Fill in Client id, Client secret and E-mail domains it signs in.
  6. Click Save provider. Open Edit… to get the redirect address and register it at Microsoft if you had not yet.
  7. Open the actions menu and click Test sign-in. A new tab signs you in at the provider and shows what it sends, without signing anybody in.

To import the directory too: in the app registration open API permissions, Microsoft Graph, Application permissions, add GroupMember.Read.All and User.Read.All, and click Grant admin consent. Then open Groups and roles…, tick Read the directory through Microsoft Graph and click Check permissions. Each check shows a tick or a cross with a detail. Add the groups you want, then click Sync now.

How to restrict sign-in to some Entra groups

  1. Open Groups and roles… on the provider.
  2. Under Access by Entra group, enter an Object id (in Entra, on the group, under Overview) and a Name, then click Add to allowed. Use Add to denied for a group that must never get in. A denied group always wins.
  3. The first allowed group asks for confirmation: from then on only people in an allowed group can sign in. Administrators can always get in. Click Add.
  4. Use Check user with an address to see what would happen.

With no allowed groups, everyone in your organisation can sign in as before. Whoever no longer passes the rules after a sync loses their portal session and with it access to the apps. Without a directory sync, access is only revoked at the person's next sign-in.

How to add Smartschool

  1. At your school's Smartschool, register an OAuth client with the redirect address cyantula shows.
  2. Click Add provider, then Smartschool.
  3. Fill in Authorization URL, Token URL and Userinfo URL with your school's own address, plus Client id, Client secret and the domains.
  4. For classes, add groupinfo to the scopes and set Groups claim to groupinfo.groups. Add basisrol after a space to get a group per basisrol (Leerling, Leerkracht), and give those groups a role under Groups and roles….
  5. Save, then use Test sign-in to check the claim names against what your school sends.

How to switch a provider off or remove it

  1. Open the actions menu and click Switch off, or Remove….
  2. A removal asks for confirmation with Remove provider.

After a removal, nobody can sign in with that provider. The people who did keep their account, apps and groups and sign in another way. Make sure an administrator can.

When something looks wrong

  • A red message in the form shows the provider's or cyantula's reason for a refusal. Fix the field it names and save again.
  • incomplete on Google: the client or the domains are missing.
  • This provider has no groups claim ...: nobody joins these groups yet. Set the groups claim under Edit…, or switch the directory sync on.
  • A cross in Check permissions: read the detail next to it. Usually the Graph permission is missing or admin consent was not granted.
  • Failed: in Last sync: the sync could not finish. The reason follows.
  • Notices that something was held back, under Last sync or Access by Entra group, mean cyantula did not apply a change. Read the reason; where a Sync again button is offered, use it once the cause is fixed.
  • Enter an Entra object id, for example 11111111-1111-1111-1111-111111111111. The id must be the group's object id.
  • Check user says Exempt because this user is an admin for administrators.

Good to know

  • Who may do this: administrators.
  • A group never makes anybody an administrator, whatever role you give it.
  • The Microsoft directory sync uses the provider's client secret and matches people on their object id.