Title: feat: group-based workspace sharing policies (restrict which groups a user can share workspaces with) · Issue #29740 · coder/coder · GitHub
Open Graph Title: feat: group-based workspace sharing policies (restrict which groups a user can share workspaces with) · Issue #29740 · coder/coder
X Title: feat: group-based workspace sharing policies (restrict which groups a user can share workspaces with) · Issue #29740 · coder/coder
Description: Problem Workspace sharing is scoped to the workspace's organization, and Premium admins can set a per-organization policy (coder organizations settings set workspace-sharing): Everyone, Service Accounts Only, or Disabled, plus the deploy...
Open Graph Description: Problem Workspace sharing is scoped to the workspace's organization, and Premium admins can set a per-organization policy (coder organizations settings set workspace-sharing): Everyone, Service Acc...
X Description: Problem Workspace sharing is scoped to the workspace's organization, and Premium admins can set a per-organization policy (coder organizations settings set workspace-sharing): Everyone, Service...
Opengraph URL: https://github.com/coder/coder/issues/29740
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: group-based workspace sharing policies (restrict which groups a user can share workspaces with)","articleBody":"## Problem\n\nWorkspace sharing is scoped to the workspace's organization, and Premium admins can set a per-organization policy (`coder organizations settings set workspace-sharing`): **Everyone**, **Service Accounts Only**, or **Disabled**, plus the deployment-wide `CODER_DISABLE_WORKSPACE_SHARING`.\n\nThere is no way to express finer-grained rules about *who may share with whom* inside an organization. A customer wants, for example: members of Group X may share workspaces with members of Group Y, but not with Group Z. Their teams live in a single organization (one template for the company, groups as the permission structure), so splitting into organizations is not a natural fit.\n\n## Proposal\n\nExtend the organization workspace-sharing policy with an optional allow-list model, e.g.:\n\n- Per organization, a set of rules `source_group -> allowed_target_groups[]` (with users resolving through their group membership).\n- When a rule set is present, `PATCH /workspaces/{id}/acl` and the Share UI only allow adding users/groups that fall within the sharer's allowed targets; the UI's user/group picker is filtered accordingly.\n- With no rules configured, behaviour is unchanged (**Everyone** semantics).\n\nOpen questions:\n\n- Whether existing ACL entries should be revalidated when rules change, or only enforced on new grants.\n- How `admin`-role sharers (who can invite others with `use`) interact with the rules: presumably the same restriction applies based on the inviter's groups.\n\n## Context\n\nRaised by a customer during a trial; came up alongside the request for per-user/group port sharing in #13361.\n\n---\n\n_Filed by Coder Agents on behalf of @ericpaulsen._","author":{"url":"https://github.com/ericpaulsen","@type":"Person","name":"ericpaulsen"},"datePublished":"2026-09-22T16:57:18Z","url":"https://github.com/coder/coder/issues/29740"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:14f6d031-4e62-0d78-7b41-ba05db89652c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E80C:3142F0:5A1E70:7E9FE5:6B044845 |
| html-safe-nonce | 38179f6b4d20b867d3f4b1b5295631b04bd90e7a64103c1174ce43152d286adb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODBDOjMxNDJGMDo1QTFFNzA6N0U5RkU1OjZCMDQ0ODQ1IiwidmlzaXRvcl9pZCI6IjQyMDU3MDExNjEzNzE4NDY3MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 34a8cb7c28bcadadac27a142addb73c44968fbf05cf616b189752a8466300652 |
| hovercard-subject-tag | issue:5542636071 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/29740/issue_layout |
| twitter:image | https://opengraph.githubassets.com/450a5942beff5c717e7d3da94d18b1e4154c071c6210629231fb948146bdc6b6/coder/coder/issues/29740 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/450a5942beff5c717e7d3da94d18b1e4154c071c6210629231fb948146bdc6b6/coder/coder/issues/29740 |
| og:image:alt | Problem Workspace sharing is scoped to the workspace's organization, and Premium admins can set a per-organization policy (coder organizations settings set workspace-sharing): Everyone, Service Acc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericpaulsen |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width