> ## Documentation Index
> Fetch the complete documentation index at: https://mooncamp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SSO Setup

> How login via Microsoft and Google works in Mooncamp, what you need to set it up and how SSO relates to user management.

## What SSO means in Mooncamp

SSO ("Single Sign-On") lets your users log in to Mooncamp with their existing Microsoft or Google account instead of a separate Mooncamp password.

Mooncamp offers three kinds of SSO:

| Login method | Plan | Setup guide |
| - | - | - |
| Microsoft (Entra ID / Microsoft 365) | All plans | [Set up Microsoft SSO](https://mooncamp.com/docs/sso-microsoft.md) |
| Google (Google Workspace) | All plans | [Set up Google SSO](https://mooncamp.com/docs/sso-google.md) |
| SAML 2.0 (e.g. Okta, Entra ID via SAML) | Enterprise | [Set up SAML SSO](https://mooncamp.com/docs/saml-sso.md) |

## How it works

Setting up SSO with Microsoft or Google always follows the same pattern:

1. **Mooncamp:** an admin allows the login method in the settings.
2. **Users in Mooncamp:** every user who should log in is added to your Mooncamp workspace with the **same email address** they use for their Microsoft or Google account. For Microsoft this is the sign-in address, the **user principal name (UPN)**.
3. **Your identity provider:** depending on your organization's policies, your Microsoft or Google admin may have to approve Mooncamp once for the whole organization.

After that, users click **Log in via Microsoft** or **Log in via Google** on the [Mooncamp login page](https://app.mooncamp.com) and are logged in.

## Allow login methods in Mooncamp

Go to **Settings > Identity and provisioning**. Under **Access** you find three switches:

* Allow login via password
* Allow login via Google
* Allow login via Microsoft

![Settings page Identity and provisioning with the Access section and switches for Allow login via password, Allow login via Google and Allow login via Microsoft](https://mintcdn.com/mooncamp/QjBPaZalk__cknxX/images/sso-settings-identity-and-provisioning.webp?fit=max\&auto=format\&n=QjBPaZalk__cknxX\&q=85\&s=91a35572e6c336bec04b45766593e1f5)

We recommend allowing only the login method your organization uses and switching off the others, especially login via password. Depending on how your organization is set up, it can make sense to allow more than one method.

> [!NOTE]
>
> * Only users with write access to the workspace settings can see and change this page.
> * At least one login method must stay switched on, so you can't lock everyone out.
> * You can't switch off the login method you used for your current session, because that would log you out. Mooncamp asks you to log in again with a method that stays allowed, then you can save the change.
> * If login via password is switched off, users who try it see a message asking them to use SSO.

## SSO doesn't add users to Mooncamp

SSO only handles **how** people log in. It doesn't decide **who** has access:

* Approving Mooncamp in Microsoft or Google doesn't create any users in Mooncamp.
* User management stays in Mooncamp. Only people who were added to your workspace under **Settings > Members** can log in via SSO (see [Managing members](https://mooncamp.com/docs/managing-employees.md)).
* If you want users to be created, updated and removed automatically from Microsoft Entra ID, use [user provisioning via SCIM](https://mooncamp.com/docs/scim-azure.md) (Enterprise) in addition to SSO.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.