Skip to content

Commit 4319797

Browse files
docs: update roles, access settings, and audit docs for multi-owner support
- Update roles-and-permissions to document multiple owners and promote/demote workflows - Update access-settings to use plural owner references - Add new audit events: org.member_promoted_to_owner, org.owner_demoted_to_member Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ea79054 commit 4319797

3 files changed

Lines changed: 28 additions & 6 deletions

File tree

docs/docs/configuration/audit-logs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ curl --request GET '$SOURCEBOT_URL/api/ee/audit' \
134134
| `user.signed_out` | `user` | `user` |
135135
| `org.ownership_transfer_failed` | `user` | `org` |
136136
| `org.ownership_transferred` | `user` | `org` |
137+
| `org.member_promoted_to_owner` | `user` | `user` |
138+
| `org.owner_demoted_to_member` | `user` | `user` |
137139

138140

139141
## Response schema

docs/docs/configuration/auth/access-settings.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ When accessing Sourcebot anonymously, a user's permissions are limited to that o
1717

1818
# Member Approval
1919

20-
By default, Sourcebot requires new members to be approved by the owner of the deployment. This section explains how approvals work and how
20+
By default, Sourcebot requires new members to be approved by an owner of the deployment. This section explains how approvals work and how
2121
to configure this behavior.
2222

2323
### Configuration
24-
Member approval can be configured by the owner of the deployment by navigating to **Settings -> Access**, or by setting the `REQUIRE_APPROVAL_NEW_MEMBERS` environment variable. When the environment variable is set, the UI toggle is disabled and the setting is controlled by the environment variable.
24+
Member approval can be configured by an owner of the deployment by navigating to **Settings -> Access**, or by setting the `REQUIRE_APPROVAL_NEW_MEMBERS` environment variable. When the environment variable is set, the UI toggle is disabled and the setting is controlled by the environment variable.
2525

2626
![Member Approval Toggle](/images/member_approval_toggle.png)
2727

2828
### Managing Requests
2929

3030
If member approval is enabled, new members will be asked to submit a join request after signing up. They will not have access to the Sourcebot deployment
31-
until this request is approved by the owner.
31+
until this request is approved by an owner.
3232

33-
The owner can see and manage all pending join requests by navigating to **Settings -> Members**.
33+
Owners can see and manage all pending join requests by navigating to **Settings -> Members**.
3434

3535
## Invite link
3636

docs/docs/configuration/auth/roles-and-permissions.mdx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@ Each member has a role which defines their permissions within an organization:
99

1010
| Role | Permission |
1111
| :--- | :--------- |
12-
| `Owner` | Each organization has a single `Owner`. This user has full access rights, including: connection management, organization management, and inviting new members. |
12+
| `Owner` | An organization can have one or more `Owner`s. Owners have full access rights, including: connection management, organization management, and inviting new members. |
1313
| `Member` | Read-only access to the organization. A `Member` can search across the repos indexed by an organization's connections, as well as view the organizations configuration and member list. However, they cannot modify this configuration or invite new members. |
14-
| `Guest` | When accessing Sourcebot [anonymously](/docs/configuration/auth/access-settings#anonymous-access), a user has the `Guest` role. `Guest`'s can search across repos indexed by an organization's connections, but cannot view any information regarding the organizations configuration or members. |
14+
| `Guest` | When accessing Sourcebot [anonymously](/docs/configuration/auth/access-settings#anonymous-access), a user has the `Guest` role. `Guest`'s can search across repos indexed by an organization's connections, but cannot view any information regarding the organizations configuration or members. |
15+
16+
## Managing owners
17+
18+
import LicenseKeyRequired from '/snippets/license-key-required.mdx'
19+
20+
<LicenseKeyRequired />
21+
22+
Organizations support multiple owners, allowing you to share administrative responsibilities across your team. Owners can promote members to owner and demote other owners back to member from **Settings -> Members**.
23+
24+
### Promoting a member to owner
25+
26+
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.
27+
28+
### Demoting an owner to member
29+
30+
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.
31+
32+
### Leaving an organization as an owner
33+
34+
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.

0 commit comments

Comments
 (0)