feat: team admin role#3040
Draft
msmithstubbs wants to merge 11 commits into
Draft
Conversation
4170eff to
9afd076
Compare
Contributor
attaching sources to a backend doesn't need admin scope. fine to let users view the backends as readonly. |
Ziinc
approved these changes
Dec 31, 2025
9afd076 to
1ffc1fe
Compare
1ffc1fe to
9604375
Compare
9604375 to
2da3bee
Compare
15f66cd to
6986bf9
Compare
3abc904 to
647008c
Compare
a10d02e to
f440a66
Compare
f440a66 to
5d72de9
Compare
5d72de9 to
80a4a26
Compare
80a4a26 to
6fe4919
Compare
d50ac78 to
e473440
Compare
e473440 to
55b57c4
Compare
55b57c4 to
3d703a3
Compare
Passes for both team owner and team user with admin role.
3d703a3 to
aecac2e
Compare
7f2476e to
5a37c5c
Compare
5a37c5c to
ccefc38
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an admin role which is required for destructive account actions.
adminpermissionadminis granted to:adminroleprivate:admintokenTeam roles
roleattribute toTeamUser, can beuseroradmin.userby default.Access tokens and API scopes
private:adminscopeadminpermission (as detailed above) is required to createprivate:admintokens through the UI or APIprivate:adminis a superset ofprivatescope and is accepted where aprivatescope is requiredRole management UI
The dashboard and account preferences will display and 'admin' label next to a team user with the admin role.
The term 'admin' can be ambiguous as we also have internal admins. I've used 'team admin' where possible to distinguish this. A team admin is a user with admin privileges for a team: either the team owner, or a team user with the admin role.
A team admin can add and remove other admins.
All team users created using the invite link as regular users. They can be granted team admin status after creation.
CleanShot.2026-01-06.at.10.34.49.mp4
If a team admin tries to remove their own admin role a warning is shown first.
CleanShot.2026-01-06.at.14.05.36.mp4
Users can create an API token with
private:adminscope by checking AdminDocumentation
Updates documentation to include
private:adminscope and note in OpenAPI spec.Part of O11Y-1251