# Workspaces and access

> What a workspace is, who can do what in it, how people switch between workspaces or request a new one, how plans gate features, and how API keys and single sign-on relate to a workspace.

Source: https://docs.go-lumen.ai/he/concepts/workspaces-and-access

**In one sentence**: A workspace is one team's private space in Lumen, with its own flows, connections, files, tables, credits and plan; people belong to it as an Admin or a Member, and everything that acts on it, a person or an API key, is confined to that one workspace.

## A workspace is a tenant

Lumen is multi-tenant, and the console's word for a tenant is **workspace**. Everything you build or store lives inside one:

-   its flows, runs and agents
-   its connectors and their credentials
-   its files and tables
-   its Lighthouse knowledge
-   its credit pool, budgets and plan
-   its API keys, single sign-on connections and audit log

Nothing is shared between workspaces. A flow in one cannot read a file in another, and a person sees only the workspaces they belong to. On a Kubernetes installation each workspace has a namespace of its own, such as `tenant-acme`, and the resources in [Flows as YAML](https://docs.go-lumen.ai/he/api/flows-as-yaml.md) carry that namespace in their `metadata`.

A workspace also belongs to one region, which decides where its data and runs live.

## Members and roles

Every person in a workspace has one of two roles.

| Role | What it is |
| --- | --- |
| **Admin** | Can change the workspace: build and run flows, add connectors, manage models, answer approvals, manage members, API keys and single sign-on. |
| **Member** | Can see everything the workspace holds, and cannot change it. |

Both roles read the same flows, runs, files, tables and credit usage. Admins are the people who build and operate; members are the people who look. A workspace always has at least one admin, and Lumen refuses to remove or demote the last one. The full table of what each role can do, and the steps to add, re-role and remove people, are in [Invite your team](https://docs.go-lumen.ai/he/getting-started/invite-your-team.md).

People are not stored by Lumen. They live in your identity provider, and a workspace corresponds to an organization or a group there, with a role per person. Lumen reads that on every sign-in. Where Lumen manages the identity provider, admins add and remove people in **Settings**, **Members**; a person with no account yet is emailed an invitation, and joins the workspace when they accept it. Where your company runs it (Auth0, or an OIDC provider of your own), you manage people there, and the **Members** tab does not appear.

## Switching workspaces

A person can belong to several workspaces with the same account. At the bottom of the sidebar, the account menu lists **Your workspaces**, each with your role in it and a check on the current one. Choose another and the console swaps to it. Nothing of the old workspace stays on screen.

If the provider cannot list your workspaces, the menu shows the current one and **Switch workspace**, which signs you in again so the provider asks which one you want. If you were removed from a workspace since the list loaded, the console says so and refreshes the list.

## Requesting a workspace

On an installation that allows it, a signed-in person with no workspace can ask for one, from the sign-in page or from **Request a workspace** in the account menu. The request is data, not authority:

1.  The person describes their team. Their name and email come from their verified sign-in, never from the form.
2.  A **platform admin**, someone who runs the installation and is not a member of any one workspace, approves or declines it. A decline carries a reason shown to the requester.
3.  On approval Lumen provisions the workspace: the organization in the identity provider with the requester as its admin, the namespace, access rules, storage, and the system flows. A new workspace starts on the **Pro** plan.
4.  The requester is emailed when it is ready.

A person may have one open request at a time. Where requests are switched off, the page says so and an administrator creates workspaces instead.

## Plans gate features

Each workspace is on a [plan](https://docs.go-lumen.ai/he/concepts/credits-and-budgets.md#plans). A plan sets limits and switches features on:

-   **Limits:** the number of seats (every member, admins included), how many runs execute at once, and how long a flow's history is kept.
-   **Features:** models on your own key, and single sign-on. Both are included on Enterprise, and an installation can change that.
-   **Billing:** credits, or a license.

The server decides every gate, and the console only reports it. A feature your plan does not include appears with the plan that would unlock it, instead of failing silently. A request for a gated feature is refused with the reason `PlanFeatureNotIncluded`. If a workspace names a plan that does not exist, it gets no gated feature and is charged credits, so a mistake never gives anything away.

## API keys belong to a workspace

An API key lets a script or a CI job call Lumen as the workspace, with no person signed in. A key is confined to the workspace it was made in, to that workspace's region, and to the scopes it was given: `read`, `run`, `data`, `build` or `admin`. Even `admin` excludes managing members, billing, API keys and secrets.

-   Only an admin, signed in as a person, can create or revoke keys, and a key can never create another key.
-   A key belongs to the admin who made it. If that person is removed from the workspace or stops being an admin, their keys are revoked at once.
-   Every key expires, in 30, 90 or 365 days. A workspace can hold at most 10 active keys.
-   An admin can turn keys off for the whole workspace, for example where single sign-on is required.

See [API keys](https://docs.go-lumen.ai/he/api/api-keys.md).

## Single sign-on

On a plan with the feature, a workspace can let people sign in through their company's identity provider. An admin adds the connection and claims the company's email domain under **Settings**, **Single sign-on**. Claiming a domain means proving it with a DNS record. A verified domain can then be enforced, so its people can get in through the company's sign-in only, whichever provider signed the token.

Sign-in itself asks for one thing, the email. The identity provider then decides how the person proves who they are, so passwords, passkeys and multi-factor all work as that provider has them set up. A person whose email already has an account that is not linked to the company's sign-in is asked to contact their workspace admin.

## Next steps

[Invite your teamAdd people, choose their role, and remove them.](https://docs.go-lumen.ai/he/getting-started/invite-your-team.md)[API keysCreate a key with the scopes a script needs.](https://docs.go-lumen.ai/he/api/api-keys.md)[Credits and budgetsWhat each plan includes, and how budgets hold runs.](https://docs.go-lumen.ai/he/concepts/credits-and-budgets.md)
