Repository navigation
Only an admin adds a server by its address - #2075
Merged
Merged
Conversation
…to match A server added by its address on Connections is added for everyone in the organization, and its tools are offered to everybody's Bots. The server now refuses that to anybody who isn't an admin, as it already did for every other way of adding an app. So Connections only offers Add server to an admin (and to the personal edition's one person), and a member who opens the Add server address directly is told an admin adds it instead of being shown a form that would be refused. The spec says so for createApp. It also says that updateOrganizationSettings saves the settings sent all or none, and that context is read-only, and lists the audit events now recorded for deleting an organization and for every change to its teams. Those events have words on Activity and Audit.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 23, 2026 20:00
This was referenced Nov 23, 2026
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.
What
createAppwithfrom=addressnow answers 403PERMISSION_DENIEDto anybody who isn't an admin, asfrom=directoryalready did. Connections offers Add server only to an admin, and to the personal edition's one person. A member who opens/connections/newdirectly is told an admin adds it, with no form.createAppsays only an admin may add either way.updateOrganizationSettingssays the settings sent are saved all or none, and thatcontextis read-only.listAuditEventslists the new events:organization.deleted, andteam.created,team.updated,team.deleted,team.member_added,team.member_role_changed,team.member_removed. Descriptions only: no operation, field, status or code changes. Generated clients regenerated.shared/audit-words.ts.Why
A member could add an organization-wide app by typing an address, which no other way of adding an app allowed. Admin changes are about to be reachable from a Bot, so this has to be closed first.
Checks
bun run lint,bun run typecheck,bun run api:lint,bun run api:generate(clean after commit).