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

> ## Agent Instructions
> Use the documentation index to find relevant pages, then read the linked Markdown before answering and cite the source URL.
> Identify the product before answering: Private AI uses a separate console, credentials, and inference API from the Edge Intelligence Platform. Do not apply instructions from one product to the other.
> Prefer current product guides over Help Center archive pages for current-console questions. Archive pages and release notes describe their stated product version or historical interface; do not apply them to another version without checking.
> Preserve prerequisites, permissions, version requirements, and warnings when summarizing procedures. Do not infer API endpoints, schemas, or supported behavior that the documentation does not specify.

# Access management (ZIAM)

> Manage ZIAM users, roles, permissions, scopes, access grants, and API tokens from the Access management workspace when you sign in through ZIAM.

When you sign in to Edge Infrastructure Services through ZIAM, users, roles, and API tokens live in the ZIAM identity store, not in the enterprise user directory. You administer them in the **Access management** workspace, which you open from the **Access** button in the console header.

## Introduction

This page covers how to manage ZIAM users, roles, permissions, scopes, access grants, and API tokens, and how ZIAM sign-in and sign-out behave.

The **Access** button appears only for sessions signed in through ZIAM. It takes the place of the **Users and roles** menu and uses the same icon. The two never appear together. Selecting **Access** opens the **Access management** workspace on the **Users** page.

The workspace has a sidebar that groups its pages into two sections:

| Section | Page | Path | Purpose |
| - | - | - | - |
| **People & roles** | **Users** | `/settings/users` | Create, view, edit, and delete ZIAM users. |
| **People & roles** | **Roles** | `/settings/roles` | Create and delete roles, and manage their permissions and child roles. |
| **People & roles** | **Permissions** | `/settings/permissions` | Browse the permission hierarchy and create permissions. |
| **People & roles** | **Scopes** | `/settings/scopes` | Create, view, edit, and delete scopes (ZIAM projects). |
| **Security & access** | **API Token** | `/settings/tokens` | Create, view, and delete API tokens. |
| **Security & access** | **Access** | `/settings/access` | View who holds which roles on which scope, and grant or revoke access. |

On smaller screens, the sidebar is replaced by a section selector at the top of the workspace. When your session resolves to exactly one ZIAM organization, the workspace header shows that organization in an **Identity organization** badge. If your session spans several organizations, the badge does not appear.

The sidebar appears on the **Users**, **Roles**, **Permissions**, **Scopes**, **API Token**, and **Access** list pages. Create and detail pages open full width without the sidebar.

If you did not sign in through ZIAM, you keep the **Users and roles** menu. See [Manage Users](https://docs.zededa.com/new-ui/infrastructure-services/administration/manage-users.md) and [Manage Roles](https://docs.zededa.com/new-ui/infrastructure-services/administration/manage-roles.md). If you open a `/settings/*` link from a non-ZIAM session, the console redirects you to the matching `/administration/*` page. Token links redirect to `/profile`. **Permissions** links redirect to `/administration/roles`, and **Scopes** links redirect to `/administration/users`.

> [!NOTE]
>
> On the **Users**, **Roles**, **Permissions**, **Scopes**, and **API Token** pages, the console shows every action and does not hide controls based on your permissions. The **Access** page is the exception: only an Organization Owner sees the controls to grant or revoke access. See [Access](#access). The console also disables actions that would remove your own access, such as deleting the user you are signed in as. If ZIAM rejects an action, the console shows the error on the page. If ZIAM rejects your credentials, select **Sign in again** in the error notice.

## Prerequisites

* You signed in to Edge Infrastructure Services through ZIAM.
* Your ZIAM account has permission to manage the users, roles, permissions, scopes, or tokens you want to change.
* To grant or revoke access, you hold the owner role at organization-wide scope (Organization Owner).

## Users

The users list displays the following columns:

| Column | Description |
| - | - |
| **Email** | The user's email address. |
| **Name** | The user's name. |
| **Verified** | Whether the user's email address is verified. |
| **Organization** | The ZIAM organization the user belongs to. |
| **Created** | When the user was created. |

ZIAM does not report a total number of users. The list header shows how many users are loaded, for example "50 users loaded", while more pages remain. Use the search box to find users by email or name.

### Create a user

1. In the header, select **Access**. The **Users** page opens.
2. Select **Add user**. The **New User** wizard opens on the **Identity** step.
3. In **Email**, enter the user's email address.
4. In **Organization**, select the user's organization. If your account belongs to only one organization, the console selects it for you.
5. Under **Email verified**, choose one option. There is no default.
   * **Already verified**: The user can sign in immediately. ZIAM sends no email.
   * **Not verified**: The identity provider sends the user a verification email.
6. Select **Next** to open the optional **Profile** step.
7. Optionally, fill in **First name**, **Last name**, **Locale**, **Timezone**, **Phone number**, **Initial password**, and **Description**.
8. Select **Create User**.

### View, edit, and delete a user

Select a user in the list to open the user's read-only details page. The **Identity** card shows the user's first name, last name, display name, email, phone number, verification status, user ID, organization, creation and last-updated times, and **Updated by**, the user who last changed the account. The page also has the following cards:

* **Access**: The user's roles and the scope each role applies to.
* **Scope**: Each scope the user holds roles on, either **Organization-wide** or a project, with the roles granted there. Select a role to open its details page.
* **Permissions**: The effective permissions the user gets from their granted roles, grouped by scope. Each permission shows its full path and a badge for every role that grants it. Select a permission to open its details page.

The **Permissions** card lists only the direct permissions of each granted role. It does not include permissions that a role might inherit through its child roles.

* To edit the user, select **Edit**. In the **Configure** dialog, change the fields you need, then save.
* To delete the user, select **Delete** on the details page, or open the row's actions menu on the **Users** page and select **Delete**. Then confirm the deletion.

You cannot delete the user you are signed in as, because doing so would end your own session. On the **Users** page, the row's menu item reads **Delete (signed in as this user)** and is disabled. On the details page, **Delete** is disabled. Ask another administrator to remove the account.

## Roles

The roles list displays each role's **Name**, **Scope**, and **Created** date. Use the search box to find roles by name.

### Create a role

1. In the header, select **Access**, then select **Roles** in the sidebar.
2. Select **Add role**. The **New Role** wizard opens on the **Identity** step.
3. Enter a **Name** and, optionally, a **Description**.
4. In **Scope**, select **Organization-wide** or a single project. A project role can only be granted on that project.
5. If your account belongs to more than one organization, select the role's **Organization**. The project options appear in **Scope** only after you select the organization.
6. Select **Next** to open the optional **Access** step.
7. Optionally, select **Parent roles** and **Permissions**. The **Permissions** checklist shows each permission by its full path, for example `iam › organization › create`.
8. Select **Create Role**.

The **Parent roles** picker lists only roles on the scope you selected. A project role cannot take an organization-wide role as its parent. If you change **Scope** after you pick parent roles, the console clears the parent roles you picked.

The **Parent roles** and **Permissions** pickers include a **Select all** checkbox. When you type a filter, **Select all** selects only the entries that match the filter. Clearing it clears only the visible entries, so selections made under a different filter stay selected.

> [!WARNING]
>
> You cannot change a role's name, description, or scope after you create it. ZIAM has no way to update them. To rename a role or move it to another scope, create a new role and delete the old one.

### Edit permissions and child roles

1. On the **Roles** page, select the role to open its details page.
2. Select a tab:
   * **Permissions**: Add permissions, or remove a permission from the role. The tab and the **Add permissions** picker show each permission by its full path. The picker's filter matches every word you type, in any order, so `create organization` finds `iam › organization › create`.
   * **Child roles**: Add child roles, or remove a child role from the role.

### Delete a role

On the **Roles** page, open the row's actions menu and select **Delete**. **Delete** is the only action in this menu.

## Permissions

A permission is a single action in ZIAM, such as `create`. Permissions form a hierarchy: each permission can sit under a parent permission. Because the same name, such as `create` or `delete`, repeats under many parents, the console shows every permission by its full path, for example `iam › organization › create`.

### Permission list

The **Permissions** page lists permissions in tree order, so each parent appears directly above the permissions beneath it. The list displays the following columns:

| Column | Description |
| - | - |
| **Permission** | The permission's full path, from its topmost known ancestor down to the permission. |
| **Description** | The permission's description. |
| **Children** | The permissions that sit directly under this one. |
| **Created** | When the permission was created. |

Use the search box to find permissions. The search matches the permission's path and description, and every word you type must match, in any order. For example, `create organization` finds `iam › organization › create`.

A permission can show one of the following flags:

* **Parent not found**: The permission's parent does not exist in ZIAM. The console shows the permission as a root.
* **Circular parent**: The permission's parent chain loops back on itself.

### Create a permission

1. In the header, select **Access**, then select **Permissions** in the sidebar.
2. Select **Add permission**. The **New Permission** wizard opens on the **Identity** step.
3. Enter a **Name**, for example `create`.
4. In **Microservice**, enter the microservice the permission belongs to, for example `device-management`.
5. Optionally, enter a **Description**.
6. Select **Next** to open the optional **Hierarchy** step.
7. Under **Parent permission**, select the permission to create this one under, or keep **None — a root permission**. Type in the filter to find a parent by name or path. The console shows where the new permission will be created.
8. Select **Create Permission**.

> [!WARNING]
>
> You cannot edit or delete a permission after you create it. ZIAM has no way to update or remove one, so every field is fixed at creation.

### View a permission

Select a permission in the list to open its read-only details page. The page has two cards:

* **Identity**: The permission's name, description, permission ID, creation time, and **Created by**.
* **Hierarchy**: The permission's path, its parent, and its children. ZIAM stores only each permission's pointer to its parent, so the console works out the children from the full list.

The details page does not show the microservice. ZIAM accepts it when you create the permission but does not return it afterwards.

## Scopes

A scope is a ZIAM project. You grant roles on a scope, and you create project roles on a scope. Use the **Scopes** page to manage the projects that appear as scopes in the **Roles** and **Access** pages.

### Scope list

The **Scopes** page lists each scope's **Name**, **Product**, **Description**, and **Created** date. If your account belongs to more than one organization, the list also shows an **Organization** column. Use the search box to find scopes by name, product, or description.

### Create a scope

1. In the header, select **Access**, then select **Scopes** in the sidebar.
2. Select **Add scope**. The **New Scope** wizard opens on the **Identity** step.
3. Enter a **Name**.
4. In **Product**, enter the product the scope belongs to, for example `zedcloud`.
5. In **Organization**, select the scope's organization. If your account belongs to only one organization, the console selects it for you.
6. Optionally, enter a **Description**.
7. Select **Create Scope**.

If no organization is available to you, the console cannot create a scope. Ask your ZIAM administrator for access to an organization.

### View, edit, and delete a scope

Select a scope in the list to open its details page. The page shows the scope's name, description, product, organization, scope ID, creation time, and **Created by**.

* To edit the scope, select **Edit**. In the **Configure** dialog, change the **Name** or **Description**, then save. You cannot change the product or organization after you create the scope.
* To delete the scope, select **Delete** on the details page, or open the row's actions menu on the **Scopes** page and select **Delete**. Then confirm the deletion.

> [!WARNING]
>
> Deleting a scope cannot be undone. Access granted on the scope can no longer be used.

## API Token

API tokens authenticate scripts and integrations against ZIAM-backed services.

### Create a token

1. In the header, select **Access**, then select **API Token** in the sidebar.
2. Select **Add token**. The **New Token** wizard opens on the **Identity** step.
3. Enter a **Name** and, optionally, a **Description**.
4. In **Expires**, select **30 days**, **90 days**, **1 year**, **No expiry**, or **Custom date…**.
5. Select **Next** to open the **Grants** step.
6. Choose how to grant access:
   * **From roles** (default): Select one or more roles. Use this option for most tokens.
   * **Custom permissions**: Enter an entity (for example, `user` or `organization`), optional comma-separated object IDs, and the permissions to grant. Use this option only when no role covers the access you need.
7. Select **Create Token**.
8. On the **Token created** screen, select **Copy**, then store the token somewhere safe.
9. Select **I've saved the token**.

> [!WARNING]
>
> The console shows the token string exactly once, on the **Token created** screen. You cannot retrieve it later. If you lose it, delete the token and create another.

Use the token as a bearer token in API requests:

```bash theme={"dark"}
curl -H "Authorization: Bearer <your-token>" https://<ziam-host>/v1/user
```

You cannot edit a token after you create it. To change a token's name, expiry, or grants, delete it and create a new one.

### Token list

The **API Token** page lists each token's **Name**, **Owner**, **Expires**, and **Created** values. **Owner** shows the name of the user the token belongs to. If the console cannot read that user, it shows the user ID instead. To see a token's description, select the token to open its details page. The list orders tokens as follows:

1. The token for your current session, pinned to the top with a **This session** badge.
2. Active tokens, soonest expiry first.
3. Expired tokens, most recently expired first. Each shows an **Expired** badge with its expiry date.

The console loads up to 10 pages of tokens automatically so the order covers the full list. If more tokens remain, select **Load more** at the bottom of the list. Tokens past that point are not included in the sort order.

### Delete a token

1. On the **API Token** page, open the row's actions menu and select **Delete**.
2. Confirm the deletion.

> [!WARNING]
>
> Deleting the token marked **This session** signs you out immediately. Anything else that uses that token also stops working. The confirmation dialog shows **Delete and sign out** for this token.

## Access

An access grant gives a user one or more roles on one scope. A scope is either **Organization-wide**, which applies across the whole organization, or a single project. Use the **Access** page to see who can do what, and where, and to grant or revoke roles.

### Access list

The **Access** page shows one row per user, covering every scope the user holds access on. Each row displays the following columns:

| Column | Description |
| - | - |
| **User** | The user who holds the access. |
| **Scopes** | Every scope the user holds access on, such as **Organization-wide** or a project name. |
| **Roles** | Every role the user holds, across all scopes. |

Use the search box to find grants by user or role. To narrow the list, open the filter menu and filter by **Role** or **Scope**.

Select a row to open the user's access details page. The page shows the user, then one card per scope. Each card lists the **Roles** the user holds on that scope and a **Scope** badge that names the scope, either **Organization-wide** or the project name.

### Who can grant and revoke access

Anyone with a grant can view the **Access** page. Only an Organization Owner can grant or revoke access. An Organization Owner is a user who holds the owner role at organization-wide scope. An owner role on a single project does not make you an Organization Owner.

If you are not an Organization Owner:

* The console hides the **Grant access** button, the row actions menu, and the revoke controls on the details page.
* If you open `/settings/access/new-grant` directly, the console tells you that only an Organization Owner can grant access.

Nobody can change their own access, because revoking it removes the permission you use to make the change. On your own row, the menu item reads **You cannot revoke your own access** and is disabled. On your own details page, the revoke controls are disabled with the same reason.

### Grant access

1. In the header, select **Access**, then select **Access** in the sidebar.
2. Select **Grant access**. The **Grant Access** wizard opens on the **Subject** step.
3. In **User**, select the user who will hold the roles.
4. In **Scopes**, select one or more scopes: **Organization-wide**, one or more projects, or both.
5. Select **Next** to open the **Roles** step.
6. For each scope, select one or more roles. Each scope lists only the roles defined on that scope. If a project has no roles, create a project role first. See [Create a role](#create-a-role). If the project you need does not exist, create it as a scope first. See [Create a scope](#create-a-scope).
7. Select **Grant Access**.

The console grants each scope in turn. If one scope fails, the console stops and reports how far it got, for example:

```text theme={"dark"}
Granted 1 of 2 scopes — Production failed: <reason>
```

The scopes listed before the failure are granted. The form keeps your selections, so you can fix the problem and try the remaining scopes again.

### Revoke access

You cannot edit the roles in a grant. To change a user's roles on a scope, revoke that access and grant it again.

* **Revoke all access for a user**: On the **Access** page, open the row's actions menu and select **Revoke all access**. Alternatively, open the user's details page and select **Revoke all access**. Confirm the revocation.
* **Revoke access on one scope**: On the user's details page, select the revoke control on that scope's card, then select **Revoke** to confirm.

## Sign in and sign out

Each time you sign in through ZIAM, ZIAM asks for your credentials again, even if your identity provider session is still active. This lets you sign out and then sign in as a different user.

When you sign out, the console deletes your session token in ZIAM and revokes it.
