DocsOpen Moon AI
Browse the docs

Domains and single sign-on (SSO)

Verify your organization’s email domain, connect your identity provider through OpenID Connect, and require members to sign in with it.

On this page

A managed organization can prove that an email domain belongs to it, then let its members sign in with their organization ID: a school digital workspace (ENT), Microsoft Entra ID, Google Workspace, Keycloak or any OpenID Connect provider. Everything is set up in the admin console › “Sign-in” (the “Security and sign-in” page), with the “Manage security” permission.

Verify a domainLink to the Verify a domain section

  1. Admin console › “Sign-in” › “Domains” card › “Add a domain”.
  2. Enter the domain of your addresses, for example school.fr, then click “Add”.
  3. Moon AI shows a TXT record: its “Record name” is _moonai. followed by your domain, and its “Record value” starts with moonai-verification=.
  4. Add this record to the domain’s DNS, then click “Check”. The domain then shows “Verified on” followed by the date.

Domains of public email services (Gmail, Outlook…) cannot be verified, and neither can a domain already verified by another organization. Verification is repeated regularly: if the record disappears, the domain is no longer considered verified.

A verified domain lets you:

  • manage the accounts of this domain (see Member accounts);
  • create their accounts through single sign-on or the SCIM directory;
  • require the organization’s sign-in;
  • use automatic joining, if you turn it on.

Removing a domain removes no members: its accounts no longer join the organization on their own, and the organization’s sign-in no longer applies to them.

Domain settingsLink to the Domain settings section

“Settings” on the domain’s row:

  • “Auto-join”: an account of this domain with a verified address joins the organization the next time it signs in, as long as seats are left. Not available while the organization pays by card: each account would add a billed seat.
  • “Default role”: never the admin role.
  • “Default groups”: chosen from the groups whose members are picked by hand.

“Existing accounts” lists the Moon AI accounts already created with an address on the domain. Choose the ones to invite: each person gets an email and joins the organization when they accept.

Connect your identity providerLink to the Connect your identity provider section

What you need from your providerLink to the What you need from your provider section

Create an OpenID Connect application of the “web” type (with a secret), and give it the redirect address shown by Moon AI:

Text
https://chat.realmoon.ai/api/v1/orgs/sso/callback

Write down the issuer address, the client ID and the client secret.

ProviderIssuer address
Microsoft Entra IDhttps://login.microsoftonline.com/<tenant id>/v2.0
Google Workspacehttps://accounts.google.com
Keycloakhttps://<your server>/realms/<your realm>
School ENT or other providerThe issuer given by its administrator, over https

An address ending in /.well-known/openid-configuration is also accepted.

Set up the sign-inLink to the Set up the sign-in section

  1. Admin console › “Sign-in” › “Organization sign-in (SSO)” card.
  2. Enter the “Identity provider URL”, the “Client ID” and the “Client secret”.
  3. Click “Test”: Moon AI checks that the provider responds (“The provider responded. … signing keys found.”).
  4. Turn the sign-in on, then click “Save”.

Moon AI then shows the “Organization sign-in link”, to share with your members: it opens sign-in with your provider directly.

Advanced settingsLink to the Advanced settings section

SettingDefaultPurpose
“Scopes”openid email profileThe information requested from the provider. openid is always added.
“Email claim”emailThe claim that gives the address. Providers usually only confirm the email claim: with another claim, sign-in is refused.
“Name claim”nameThe display name. If missing, the first name and last name.
“Groups claim”emptyOptional. When empty, the provider’s groups are not read.
“Provider groups”noneEach mapping links a provider group to an organization group.
“Trust email addresses from this provider”offSome providers mark addresses as unverified, and every sign-in is then refused. Turn this option on only if your users cannot change their own address at your provider.

With provider groups, a member joins the chosen group at each sign-in, and leaves it once they are no longer in it at the provider. A group that grants the admin role cannot be chosen.

Who can sign in this wayLink to the Who can sign in this way section

  • Without a verified domain: the organization’s members and invited people sign in with their own address, whatever its domain. Nobody else can.
  • With a verified domain, or a provider served on your domain: any address on that domain can sign in. A Moon AI account is created at first sign-in if the person does not have one, and they join the organization as long as seats are left.
  • The organization’s owner never signs in through single sign-on: they keep their password and their other sign-in methods.

If the person’s Moon AI account has two-factor authentication, its code is requested after the provider step.

Require the organization’s sign-inLink to the Require the organization’s sign-in section

With at least one verified domain, “Require SSO” forces accounts on your verified domains to sign in through your provider: their password and other sign-in methods are refused. Sessions opened any other way are closed.

  • The owner keeps their password.
  • Admins keep their other sign-in methods, so they never lose access to the admin console if the provider goes down.

“Remove sign-in” gives everyone back their password and other methods, and deletes the client secret.

For membersLink to the For members section

  1. On the sign-in page, choose “Continue with my organization’s SSO”.
  2. Enter “Your work or school email”.
  3. Sign in at your provider: you come back to Moon AI, in the organization.

The organization’s sign-in link opens this sign-in directly. In the mobile apps, the provider’s page opens in the phone’s browser, then takes you back to the app.

If the organization requires its sign-in, a password sign-in shows this message, in French: Votre organisation demande de vous connecter avec son identifiant. Choisissez « Continuer avec l’identifiant de mon organisation ». (your organization asks you to sign in with its ID; choose “Continue with my organization’s SSO”).

Error messagesLink to the Error messages section

These messages are shown in French.

MessageMeaningWhat to do
La connexion a expiré ou a déjà été utilisée. Recommencez.The sign-in expired or was already used.Start the sign-in again from the beginning.
Votre adresse n’appartient pas à un domaine vérifié par cette organisation.Your address is not on a domain verified by this organization.Use your organization address, or ask for an invitation.
Votre adresse n’est pas encore dans cette organisation. Demandez une invitation à son administrateur, puis reconnectez-vous.Your address is not in this organization yet.The organization has no verified domain: you need an invitation.
Le fournisseur d’identité n’a pas confirmé votre adresse e-mail.The identity provider did not confirm your email address.The admin checks the address at the provider, or the “Trust email addresses from this provider” option.
Le fournisseur d’identité ne confirme pas l’adresse lue dans le champ choisi par votre organisation. Contactez son administrateur.The provider does not confirm the address read from the claim your organization chose.The “Email claim” must be email.
Ce compte ne peut pas se connecter avec l’identifiant d’une organisation.This account cannot sign in with an organization ID.It is the owner’s account: it signs in with its password.
La connexion de votre organisation n’est pas active.Your organization’s sign-in is not active.The admin must test the sign-in, then turn it back on.
Le fournisseur d’identité de votre organisation n’a pas répondu correctement. Réessayez ou contactez son administrateur.Your organization’s identity provider did not respond correctly.Try again; if it keeps happening, the admin checks the setup.

See alsoLink to the See also section

Moon AI

Moon AI in action

0:00

Explore

Screenshots of chat.realmoon.ai taken on October 29, 2026, with fictional data.

Moon AI

Your preferences

Visits counted without cookies.

Our server counts visits without cookies or trackers. Your theme and your answer about ad measurement are remembered on this device.

Ad measurement

With your consent, our ad networks’ trackers (Google) measure our ads, from the visit to the sign-up and then to the first subscription and its amount, and may show you our ads. Your answer is valid for 13 months; you can change it here at any time.

No answer saved on this device.

After you decline, no tag is loaded anymore and the site deletes the cookies they had set on realmoon.ai. Those on the ad networks’ own domains are managed with them or in your browser.

The Moon AI app has its own privacy settings.