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

# Users & Groups

## User

A `User` represents a human team member who can access and perform operations in Bytebase.

For machine identities, see [Service Accounts](/administration/service-account) and [Workload Identity](/administration/workload-identity/overview).

## User Group

A `User Group` organizes multiple users together for easier permission management. Workspace admins create groups and add users, then assign these groups to roles within projects.

<Note>
  Bytebase does not support nested groups. A group can only contain users, it can't contain another group.
</Note>

<Note>
  Machine identities (service accounts and workload identities) cannot be part of user groups. Since they are for automated processes with specific access needs, including them in groups could grant unintended permissions. This is considered an [anti-pattern](https://cloud.google.com/iam/docs/best-practices-service-accounts#groups).
</Note>

## Add group

Within Workspace, go to **IAM & Admin** > **Users & Groups**, and **Add Group** from top-right.

<img src="https://mintcdn.com/dbx/VmH49kiwLiErec4u/content/docs/administration/user-groups/add-group.webp?fit=max&auto=format&n=VmH49kiwLiErec4u&q=85&s=2a39c470d4b1e19a5bd28f5e8e67b1b3" alt="add-group" width="2176" height="668" data-path="content/docs/administration/user-groups/add-group.webp" />

Create an Email for this group, it'll serve as an account and *cannot be changed after creation*. Fill the group's name into the Title bar. You can **Add member** below, where they can be `Group member` as well as `Group owner`.

<img src="https://mintcdn.com/dbx/VmH49kiwLiErec4u/content/docs/administration/user-groups/add-group-detail.webp?fit=max&auto=format&n=VmH49kiwLiErec4u&q=85&s=46d9aab43b768770f184150f7ae273bb" alt="add-group-detail" width="1578" height="1090" data-path="content/docs/administration/user-groups/add-group-detail.webp" />

Here we've created a `Contractor Group`, you can view or edit it under **Groups** page.

<img src="https://mintcdn.com/dbx/VfAunp5k2-AsJzmC/content/docs/administration/user-groups/view-under-groups.webp?fit=max&auto=format&n=VfAunp5k2-AsJzmC&q=85&s=64f1bf4ae8b8afd5a9c04432f195f6c1" alt="view-under-groups" width="1976" height="658" data-path="content/docs/administration/user-groups/view-under-groups.webp" />

You can see which group a user belongs to under **Users** page as well.

<img src="https://mintcdn.com/dbx/VfAunp5k2-AsJzmC/content/docs/administration/user-groups/view-under-users.webp?fit=max&auto=format&n=VfAunp5k2-AsJzmC&q=85&s=028e70c37371c2d08e571fa3981251da" alt="view-under-users" width="1958" height="488" data-path="content/docs/administration/user-groups/view-under-users.webp" />

## Grant roles to group

Now that we've created this `Contractor Group`, we can assign corresponding permissions to these groups within any project.

**Select Project** from top left. Enter `Basic Project`.

<img src="https://mintcdn.com/dbx/VfAunp5k2-AsJzmC/content/docs/administration/user-groups/enter-basic-project.webp?fit=max&auto=format&n=VfAunp5k2-AsJzmC&q=85&s=f2d00d762fa1be03b2f82c8e084c4ef8" alt="enter-basic-project" width="962" height="674" data-path="content/docs/administration/user-groups/enter-basic-project.webp" />

Go to **Manage** > **Members** where you can see the project's members and roles. Our `Contractor Group` is not among them before we **Grant Access** to the group from top right.

Choose **Groups** and Select our group in **Grant Access** detail page. **Assign role** and **Confirm**.

<img src="https://mintcdn.com/dbx/VfAunp5k2-AsJzmC/content/docs/administration/user-groups/grant-access.webp?fit=max&auto=format&n=VfAunp5k2-AsJzmC&q=85&s=9274eae93e14766cd5db49a247b6e022" alt="grant-access" width="1570" height="1236" data-path="content/docs/administration/user-groups/grant-access.webp" />

Now you can see the `Contractor Group` under **View by members** page as well as **View by roles** page within **Members** section of `Basic Project`.

<img src="https://mintcdn.com/dbx/VfAunp5k2-AsJzmC/content/docs/administration/user-groups/project-members-or-roles.webp?fit=max&auto=format&n=VfAunp5k2-AsJzmC&q=85&s=1374a2947ac78a65bf07a7f84da9dbcb" alt="project-members-or-roles" width="1520" height="374" data-path="content/docs/administration/user-groups/project-members-or-roles.webp" />

All members within this group now share permission to the project.
