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

# Workspace

> Manage your workspace, require two-factor authentication, set how long chats are kept, and set up single sign-on for your team.

Your workspace is the organization that owns your assistants, knowledge, and settings. Every resource in homie belongs to a workspace, and your teammates share it with you. Open **Settings → General** to manage it.

## Workspace name and profile

Update your **organization name** and profile details so your team and invitations show the right identity. The name appears across the platform and in emails sent to invited members.

> [!TIP]
>
> Use a recognizable company or brand name so teammates immediately know which workspace they're joining.

## Require two-factor authentication

Workspace owners and admins can require two-factor authentication for sign-ins with email and password. Open **Settings → General**, turn on **Enforce two-factor authentication for sign-in** in the **Security** card, and select **Save**. After you enable the policy, members who sign in with email and password must finish 2FA setup before they can use the platform or API, and confirm a code at every sign-in. The requirement also applies immediately after an invited member accepts an invitation.

Sign-ins with **Continue with Google**, **Continue with Microsoft**, or **Continue with SSO** are secured by the respective provider, so the requirement doesn't apply to them. Enable multi-factor authentication there. A member who has both a password and one of these sign-in methods is only asked for the code when signing in with the password.

For SSO, this applies while the SSO domain is set up and verified. If the workspace requires 2FA and you remove SSO for a domain or change that domain, existing sessions signed in through it lose this exception. Members without 2FA must then complete setup to continue using those sessions. Devices that are already signed in pick up the change within a few minutes.

## Chat retention

With the **Chat retention** card, you control how long chats are kept. Once automatic deletion is active, chats older than the selected period are deleted together with all their messages. A chat's age counts from the moment it started. Deleted chats disappear from the chat list, chat details, and chat exports and cannot be restored.

Deleted chats are removed from our backups no later than 3 months after deletion. These backups are used only to recover from an outage.

Deletion runs once a day. When you change the period or activate automatic deletion, chats are not removed immediately but during the next daily run, at the latest within 24 hours. This also applies when you shorten the period and older chats fall below the limit as a result.

Only workspace owners and admins can change the period or activate automatic deletion. Every member can see the setting and its status.

1. Open **Settings → General**. The **Chat retention** card is below the **Security** card.
2. Under **Retention period**, choose **1 month**, **3 months**, **6 months**, or **12 months**. For a different period, choose **Custom** and enter any number of days from 30 to 365. The default is **12 months**; there is no unlimited option.
3. Select **Save**.

Below the period, the card shows the status of automatic deletion:

* **Not active**: chats are kept until automatic deletion is activated.
* **Starts on …** with the scheduled start date: until then, chats are kept.
* **Active**: chats older than the saved period are deleted automatically.

As an owner or admin, you can select **Activate** to make automatic deletion apply from now on instead of waiting for the scheduled date. The first deletion follows during the next daily run. For new workspaces, automatic deletion is active from creation.

> [!WARNING]
>
> Activating automatic deletion cannot be undone. Check the saved period before you confirm **Activate**.

> [!NOTE]
>
> **Your analytics stay available.** Automatic deletion removes chats and their message content, but not the key figures derived from them, such as the number of chats, the average number of messages per chat, conversion, or clicked products. This data is fully anonymous and therefore not personal data under the GDPR. You can keep viewing your analytics beyond the selected retention period.

## Single sign-on

With single sign-on (SSO), your team signs in through your company's identity provider. The platform supports single sign-on with OpenID Connect (OIDC), for example Microsoft Entra ID, Google Workspace, or Okta. Owners and admins set it up under **Settings → SSO**, per email domain, in two steps: add the domain with the connection to your identity provider, and verify the domain with a DNS record. Members can open the page and see the configured domains with their status and default role, but can't add or change them.

A workspace can have several SSO domains, for example `acme.com` and `acme.de`. Each domain has its own connection, its own default role, and its own DNS record, so the domains can use the same identity provider or different ones.

### Before you start

You need an **Owner** or **Admin** role in homie, access to your identity provider’s app settings, and permission to add DNS records for your email domain. Decide who should have access to the app and which default role they should receive. Choose **Member** unless new teammates need administrative access.

### Add an SSO domain

1. Open **Settings → SSO → Add SSO domain** on the platform. Keep the dialog open so you can copy its **Redirect URI**.
2. In your identity provider, create an OpenID Connect web application. For Microsoft Entra ID, follow the setup below.
3. Enter your **Email domain**, for example `acme.com`.
4. Choose the **Default role**: **Member** or **Admin**. People who join through this domain without an invitation get this role.
5. Enter the **Issuer URL**, **Client ID**, and **Client secret** of the app.
6. Copy the **Redirect URI** shown on the platform into the app as its redirect URI (also called sign-in redirect URI or callback URL).
7. Select **Add SSO domain**.

The issuer URL is the address of your identity provider. It has to start with `https://`.

| Identity provider | Issuer URL | Where to find it |
| - | - | - |
| Microsoft Entra ID | `https://login.microsoftonline.com/<tenant-id>/v2.0` | The **Directory (tenant) ID** is on the **Overview** page of the app registration. |
| Google Workspace | `https://accounts.google.com` | The same for every Google Workspace. |
| Okta | `https://<your Okta domain>`, for example `https://acme.okta.com` | Your Okta domain is shown in the menu at the top right of the Okta Admin Console. |

For any other identity provider, use the issuer URL from its OpenID Connect settings. The identity provider has to offer all of its sign-in addresses under the address of the issuer URL.

> [!NOTE]
>
> **Google Workspace:** Every SSO sign-in must come from a Google Workspace account of the domain; personal Google accounts are rejected. The regular **Continue with Google** option remains available independently of SSO.

The client secret is the credential of your identity provider’s app. Keep it confidential. Successfully adding a domain doesn't confirm that the app credentials work: complete a test sign-in after DNS verification.

### Set up Microsoft Entra ID

1. In the Microsoft Entra admin center, open **App registrations** and create a registration for homie. Choose the supported account type for accounts in your organizational directory only (**Single tenant**).
2. Add a redirect URI of type **Web**. Paste the exact **Redirect URI** shown in homie, including its path.
3. On the registration’s **Overview** page, copy **Application (client) ID** into homie’s **Client ID** field. Use **Directory (tenant) ID** only in the **Issuer URL**: `https://login.microsoftonline.com/<tenant-id>/v2.0`. Replace `<tenant-id>` with your tenant ID. Shared issuers using `common`, `organizations`, or `consumers` aren't accepted.
4. Under **Certificates & secrets**, create a client secret. Copy its **Value** into homie’s **Client secret** field. The secret ID is a different value and won't work. Record the expiry date so you can replace the secret before it expires.
5. Under **Token configuration → Add optional claim**, choose token type **ID** and add both `email` and `xms_edov`. The `email` claim supplies the email address; `xms_edov` can confirm that its domain is verified. Adding the claims doesn't guarantee that every account returns a verified email.
6. Make sure the intended teammates can access the application in Entra. Return to homie, select **Add SSO domain**, and verify the email domain as described below.

See Microsoft’s guides to [app registration](https://learn.microsoft.com/en-us/graph/auth-register-app-v2), [client secrets](https://learn.microsoft.com/en-us/entra/identity-platform/how-to-add-credentials), and [optional claims](https://learn.microsoft.com/en-us/entra/identity-platform/optional-claims).

> [!NOTE]
>
> A Microsoft sign-in name can differ from the account’s email address. In homie, enter the work email address belonging to your configured SSO domain. The email supplied by Entra must belong to that domain too. For an existing homie account, use its current email address and confirm it before connecting SSO.

### Set up Google Workspace or Okta

> [accordion] Google Workspace
>
> 1. In a Google Cloud project for your organization, configure the OAuth consent screen and create an OAuth client of type **Web application**.
> 2. Add the exact **Redirect URI** from homie to the authorized redirect URIs. Copy the client ID and client secret into homie and use `https://accounts.google.com` as the issuer.
> 3. Make sure your Workspace users are allowed to use the OAuth app, then add and verify the SSO domain in homie. Test with a Workspace account of that domain.
>
> See [Google’s OpenID Connect setup](https://developers.google.com/identity/openid-connect/openid-connect).

> [accordion] Okta
>
> 1. Create an app integration with **OIDC - OpenID Connect** and **Web Application**. Use the authorization code flow and client-secret authentication.
> 2. Add the exact **Redirect URI** from homie as a sign-in redirect URI. Copy the client ID and client secret into homie. For Okta’s organization authorization server, use your Okta domain as the issuer, for example `https://acme.okta.com`.
> 3. Assign the intended users or groups to the app, then add and verify the SSO domain in homie. Test that the account supplies an email address from that domain.
>
> See [Okta’s app setup](https://help.okta.com/oie/en-us/Content/Topics/Apps/Apps_App_Integration_Wizard_OIDC.htm) and [issuer guidance](https://developer.okta.com/docs/concepts/auth-servers/).

### Verify the email domain

After you add the SSO domain, the platform shows **Verify the email domain** with a DNS record of the type **TXT**. It proves that the email domain belongs to your organization. Every SSO domain has its own DNS record. You can open this step again at any time with **Verify domain** next to the domain.

1. Open the DNS settings of your email domain at your DNS provider.
2. Create a record of the type **TXT** and copy the **Name** and **Value** from the platform. Some DNS providers add the domain automatically; in that case, enter the name without the domain at the end.
3. Back on the platform, select **Verify**.

DNS changes can take a while to become visible, from a few minutes up to several hours. If the verification doesn't succeed right away, wait and select **Verify** again. The platform shows the deadline for using this DNS record to verify the domain. After that, select **Request DNS record** and replace the value at your DNS provider with the new one.

> [!NOTE]
>
> Until an email domain is verified, nobody can sign in with SSO through it, and the domain shows **DNS pending** or **Verification required** under **Settings → SSO**. A verified domain shows **Active**. An unverified domain doesn't block another workspace, and an email domain can be verified for only one workspace. Changing the email domain later requires a new verification with a DNS record for the new domain. You can remove the DNS record once the domain is verified.

Members then use **Continue with SSO** on the login page and enter their work email address.

### Connect an owner account

For security, the account of a workspace owner isn't connected to SSO by an SSO sign-in alone. As an owner, sign in as usual first, open **Settings → SSO**, and select **Connect my account** in **Sign in with SSO yourself**. Complete the sign-in with the matching account at your identity provider. The option appears once the domain of your email address is verified. After that, you can use **Continue with SSO** like everyone else. Admins and members don't need this step.

### Test sign-in and resolve common problems

After DNS verification, check that the domain shows **Active**. Connect your owner account as described above, then test **Continue with SSO** with a teammate. Check their role and assistant access under **Settings → Team** before inviting the rest of your team.

* **An existing account can't be connected:** Sign in with its current method. In **Account → Personal Data**, select **Resend** if the email isn't verified, open the confirmation link, then try SSO again. The identity provider’s email confirmation doesn't replace this step for an existing unverified account.
* **You see “Confirm your email address”:** Open the confirmation link sent to the displayed address to finish joining. If you already confirmed it in another tab, select **Continue**. This can happen when an invitation is pending and the identity provider hasn't confirmed the email, for example if Entra doesn't supply `xms_edov` as `true`.
* **Entra rejects the app or redirect URI:** Check the client ID, the tenant ID in the issuer URL, the secret value and expiry, and the exact redirect URI. A successful DNS verification doesn't validate these settings.
* **The email domain doesn't match:** Ask your identity provider administrator to check the email address supplied for your account. Your Microsoft sign-in name alone may not be that address.

### Manage SSO domains

Under **Settings → SSO**, every domain shows its status and default role. Open the menu next to a domain to change it:

* **Edit connection** changes the email domain, default role, client ID, or client secret. The issuer URL can't be changed. Leave the client secret empty to keep the current one. A new default role applies to people who join from then on; existing members keep their role.
* **Remove SSO** removes SSO for this domain. Other SSO domains of the workspace aren't affected.

Once members have signed in through an SSO domain, you can rotate its client secret, but you can no longer change its client ID. To move the domain to a different issuer URL, app, or identity provider, select **Remove SSO** and add the domain again.

### Who joins the workspace

New members who sign in with SSO through one of your verified SSO domains can join the workspace automatically, without an invitation. Without a pending invitation, they receive the default role of their domain and access to every assistant. Existing members keep their role and assistant access. An invitation lets you assign a different role or restrict the assistants in advance: if an invitation to their email address is pending, the platform accepts it automatically after the SSO sign-in and any required email confirmation, so the person doesn't need to open the invitation link. If the invitation is declined or revoked, the person joins with the default role on their next SSO sign-in. You can change the role and assistant access of every member at any time under **Settings → Team**.

Only **Continue with SSO** adds people to the workspace automatically. Signing in with **Continue with Google** or **Continue with Microsoft** never makes someone a member, even with an email address of your domain; they need an invitation or an SSO sign-in.

An account can belong to only one workspace. If the account is already a member of another workspace, the SSO sign-in is rejected with an explanation and the invitation stays open. People who already have a homie account must confirm its email address before connecting it to SSO. Invite people who already have an account at their current account email address: if their already connected SSO account has a changed address in your identity provider, an invitation to the new address isn't applied, and they join with the default role of their domain and access to every assistant.

> [!NOTE]
>
> With single sign-on, your identity provider decides who can sign in. Removing a member under **Settings → Team**, or a member leaving the workspace, ends their access on all devices, but only until their next SSO sign-in. To revoke access permanently, also remove the person in your identity provider, for example by disabling the user or removing their assignment to the app in Microsoft Entra ID or Okta, or by suspending the user in Google Workspace.

> [!WARNING]
>
> Before selecting **Remove SSO**, make sure members who only use SSO with this domain have another sign-in method. Removing SSO for a domain removes their SSO account connection; current sessions remain active only until they expire.

## Leave a workspace

If you're a member of a workspace you no longer need access to, you can leave it from the **General** settings.

> [!NOTE]
>
> If you're the only owner, you can't leave the workspace. Transfer ownership to another member first, or delete the workspace.

## Delete a workspace

Workspace owners can permanently delete the entire workspace.

> [!WARNING]
>
> Deleting a workspace is permanent and irreversible. It removes all assistants, knowledge stores, conversations, and settings for every member. Make sure your team no longer needs any of this data before continuing. This action is available to the **owner** only.

## Next steps

> [card] [Manage your team](https://docs.yourhomie.ai/en/user-guide/settings/team.md)
>
> Invite members and assign roles within your workspace.

> [card] [Billing & plans](https://docs.yourhomie.ai/en/user-guide/settings/billing.md)
>
> Review your subscription, quota, and payment method.


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