> ## Documentation Index
> Fetch the complete documentation index at: https://sourcebot-jminnetian-askskills.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Members and roles

export const feature_0 = "Role management"

export const verb_0 = undefined

Sourcebot provides different role types to help you control access and permissions across your organization.

| Role     | Permission                                                                                                                                                                                                                                                                                                                                                |
| :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Owner`  | Owners have full administrative control over all organization-level settings, including user management, access control, billing, and audit logs, in addition to all permissions a member can perform.                                                                                                                                                    |
| `Member` | Members have access and to use all standard features, such as code search, ask, mcp, etc., as well as their account settings. Members **cannot access** organization-level administration pages.                                                                                                                                                          |
| `Guest`  | Guests are users that access Sourcebot without a account when [anonymous access](/docs/configuration/auth/access-settings#anonymous-access) is enabled. Guests can use some features, such as code search and browsing files, with additional limitations like not having chat history. Guests **cannot access** organization-level administration pages. |

Note that when [permission syncing](/docs/features/permission-syncing) is enabled, users will only be able to view repositories they have access to. This applies to all roles, **including  Owners**.

<Note>
  On the free plan, all signed-in users are given the `Owner` role.
</Note>

## Default role assignment

When a user joins your organization, they are assigned a default role. This assignment, and the ability to [manage the user's role](#managing-member-roles) afterwards, depends on [your plan](/docs/activating-a-subscription):

| Plan     | Default role | Role management                                                            |
| :------- | :----------- | :------------------------------------------------------------------------- |
| **Free** | `Owner`      | Not available. A user's role cannot be changed.                            |
| **Paid** | `Member`     | Available. Owners can [promote or demote](#managing-member-roles) members. |

## Managing member roles

<Note>
  {feature_0} {verb_0 ?? "is"} only available in a paid plan. Please activate a [license key](/docs/activating-a-subscription) to use this feature.
</Note>

Owners can change the role of any user in the organization from **Settings → Members**. This lets you control who has administrative access by promoting trusted members to `Owner`, and scoping access back down to `Member` when administrative responsibilities change.

<Frame>
  <img src="https://mintcdn.com/sourcebot-jminnetian-askskills/9EAAgSIex1tplPSy/images/managing_owners.png?fit=max&auto=format&n=9EAAgSIex1tplPSy&q=85&s=bc2042a77b9b071b87e3c582e0fad502" alt="Members settings page showing team members and their roles" width="1568" height="1406" data-path="images/managing_owners.png" />
</Frame>

### Promoting a member to owner

To promote a member, click the action menu (three dots) next to their name in the members list and select **Promote to owner**. The member will immediately gain full administrative access.

<Frame>
  <img src="https://mintcdn.com/sourcebot-jminnetian-askskills/9EAAgSIex1tplPSy/images/promote_to_owner.png?fit=max&auto=format&n=9EAAgSIex1tplPSy&q=85&s=1a456cee260816600a3d40c1f39c6436" alt="Dropdown menu showing Promote to owner option for a member" width="1510" height="384" data-path="images/promote_to_owner.png" />
</Frame>

### Demoting an owner to member

To demote an owner, click the action menu next to their name and select **Demote to member**. Owners can also demote themselves to step down from the role. The last remaining owner of an organization cannot be demoted - at least one owner must exist at all times.

<Frame>
  <img src="https://mintcdn.com/sourcebot-jminnetian-askskills/9EAAgSIex1tplPSy/images/demote_to_member.png?fit=max&auto=format&n=9EAAgSIex1tplPSy&q=85&s=93a6237bf14334d41ef896a3d43c9452" alt="Dropdown menu showing Demote to member option for an owner" width="1506" height="420" data-path="images/demote_to_member.png" />
</Frame>

### Leaving an organization as an owner

An owner can leave the organization as long as at least one other owner exists. If you are the last owner, you must promote another member to owner before leaving.

<Frame>
  <img src="https://mintcdn.com/sourcebot-jminnetian-askskills/9EAAgSIex1tplPSy/images/owner_leave_org.png?fit=max&auto=format&n=9EAAgSIex1tplPSy&q=85&s=09d6add12a6b2d376aeedb646d8a4aef" alt="Dropdown menu showing Leave organization option for an owner" width="1504" height="436" data-path="images/owner_leave_org.png" />
</Frame>
