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

# Sign-in and roles

> How people sign in: your identity provider, the sign-in service the operator sets up, and who holds which role in Jedify.

Jedify's sign-in service, Zitadel, runs in your cluster. It signs people in through your identity provider and holds each person's role in Jedify. `spec.identity` in your Jedify resource describes all of it, and the operator sets it up and keeps it that way.

```yaml theme={null}
spec:
  identity:
    organization: Acme                     # your account's name in Jedify
    domain: auth.jedify.acme.com           # the sign-in hostname
    administrator: platform-team@acme.com  # the sign-in service's own administrator
    provider:
      name: Okta                           # the sign-in button's label
      issuer: https://acme.okta.com
      clientId: 0oa1example
      clientSecret:
        externalSecret:
          remoteRef: { key: jedify-okta-client-secret }
    grants:
      - email: first.admin@acme.com        # Tenant Admin, the default role
      - email: analyst@acme.com
        role: Data expert
```

## Your identity provider's application

In your identity provider, create an OpenID Connect web application that uses the authorization-code flow, with this redirect URI:

```text theme={null}
https://auth.jedify.acme.com/idps/callback
```

The host is your `identity.domain`. You need the application's issuer, client ID and client secret. Store the client secret in Secret Manager, or in a Kubernetes Secret in `jedify`: see [Credentials](https://docs.jedify.com/self-hosted/gcp/configure/credentials.md).

| Provider | Issuer |
| - | - |
| Okta | `https://<your Okta domain>` |
| Microsoft Entra ID | `https://login.microsoftonline.com/<tenant ID>/v2.0` |
| Google | `https://accounts.google.com` |

> [!NOTE]
>
> With Google, create the OAuth client in the Google Cloud console, under APIs & Services, Credentials, as a web application. Set its consent screen to Internal, and only your Google Workspace domain's accounts can sign in.

## What the operator sets up

Between installing the platform and the application, the operator sets up the sign-in service:

* the organization, which Jedify's account is tied to;
* the `jedify` project, with the roles `Tenant Admin`, `Data expert` and `User`;
* the web UI's and the MCP server's sign-in applications, redirecting to your `install.host`;
* your identity provider, as a sign-in button that creates each person at their first sign-in and links them by email;
* a login policy with self-registration off, so nobody can create an account on the sign-in page.

It finds each of these by name before it creates one, and writes only what differs, so it does this on every check. To see what it found:

```sh theme={null}
kubectl -n jedify get jedify jedify -o jsonpath='{.status.identity}{"\n"}'
```

If the setup fails, `Installed` turns `False` with the sign-in service's answer, and the application waits.

## Roles

| Role | Can |
| - | - |
| `Tenant Admin` | Administer the account, and use Editor mode and Admin mode. |
| `Data expert` | Review and approve the semantic layer's proposed changes, and use Editor mode and Admin mode. |
| `User` | Ask Jedify questions. |

## Grants

A person who signs in for the first time has no role, and Jedify shows them nothing. The operator gives each person in `grants` their role within a minute of their first sign-in, so they only reload the page.

```sh theme={null}
kubectl -n jedify get jedify jedify \
  -o jsonpath='{range .status.grants[*]}{.email}{"\t"}{.state}{"\t"}{.message}{"\n"}{end}'
```

| State | Means |
| - | - |
| `Granted` | They hold the role. |
| `WaitingForSignIn` | They haven't signed in yet. Not an error. |
| `Failed` | The grant failed. The message says why. |

The operator only adds roles. Removing someone from `grants` takes nothing away: remove the role in the sign-in service's console, at `https://<identity.domain>/ui/console`.

## Changing it later

* **A new `install.host`**: the operator adds the new host's redirect addresses to both sign-in applications. The old ones stay.
* **A new `provider.name`**: the operator sets up a second sign-in button under the new name. Remove the old one in the sign-in service's console.
* **A new client secret**: change the secret, and the operator updates the identity provider in the sign-in service. See [Credentials](https://docs.jedify.com/self-hosted/gcp/configure/credentials.md#rotation).

> [!WARNING]
>
> Keep `organization` as it is. The organization is your account: under a new name, the operator sets up a second, empty organization, and Jedify would look empty.


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