René's URL Explorer Experiment


Title: feat(api): manage workspace members through the v2 API by waleedlatif1 · Pull Request #9852 · simstudioai/sim · GitHub

Open Graph Title: feat(api): manage workspace members through the v2 API by waleedlatif1 · Pull Request #9852 · simstudioai/sim

X Title: feat(api): manage workspace members through the v2 API by waleedlatif1 · Pull Request #9852 · simstudioai/sim

Description: Summary Adds PATCH /api/v2/workspaces/{workspaceId}/members/{userId} (change a member's role) and DELETE (remove a member, or leave), mirroring the v2 organization member routes Both run the existing workspace permission and member-removal use cases, now admitted for personal API keys and OAuth tokens with api:write; workspace keys stay denied since they can never hold admin Existing guards apply unchanged: owner and billing account stay admin, no self-demotion, org admins and SCIM-managed members are refused, the last admin cannot leave v2 errors: non-members are 404 on both verbs, lock contention is 503 with Retry-After, removing an owner with no billing-account heir is 409, and SCIM refusals keep the SCIM_MANAGED_MEMBERSHIP code (internal UI routes respond exactly as before) CLI: workspaces members list|update|remove; the shipped sim workspaces members spelling still lists Regenerated OpenAPI, CLI API/docs, MCP operations, and the v2 route table Type of Change New feature Testing apps/sim/lib/workspaces/__integration__/members.integration.ts (17 passing) drives the real v2 handlers in-process against PostgreSQL with hashed personal/workspace keys and OAuth tokens; reverting the principal widening, scope, 404, 503, 409, and SCIM-code changes each turns its test red manage-permissions.test.ts, remove-member.test.ts, public-queries.test.ts, CLI group-default.test.ts and reference tests tsc on apps/sim; check:openapi, cli-api, cli-docs, mcp-operations, v2-route-table, route-verbs, principal-kind-parity, api-validation:strict, test-patterns, boundaries, source-conventions; biome Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Adds PATCH /api/v2/workspaces/{workspaceId}/members/{userId} (change a member's role) and DELETE (remove a member, or leave), mirroring the v2 organization member routes Both run the e...

X Description: Summary Adds PATCH /api/v2/workspaces/{workspaceId}/members/{userId} (change a member's role) and DELETE (remove a member, or leave), mirroring the v2 organization member routes Both run t...

Opengraph URL: https://github.com/simstudioai/sim/pull/9852

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:da5a4e43-5504-cc7f-ec4c-35d0b396c965
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB3CA:2C60B8:CC6740:1226C67:6AFB63DE
html-safe-nonce569dda18e87d3d6b17f49ac0820a335a1f216d941beef25db91751b4565b53aa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0NBOjJDNjBCODpDQzY3NDA6MTIyNkM2Nzo2QUZCNjNERSIsInZpc2l0b3JfaWQiOiI0MTYyMzYwMTM5NTgxMTg3MDM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0c0eef0176f034002757646c3bcb4ca7adf5a2bdf01fd587026cdbf93a390a06
hovercard-subject-tagpull_request:5248946465
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9852/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Adds PATCH /api/v2/workspaces/{workspaceId}/members/{userId} (change a member's role) and DELETE (remove a member, or leave), mirroring the v2 organization member routes Both run the e...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9852/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9852%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9852%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/9852/files
Reloadhttps://github.com/simstudioai/sim/pull/9852/files
Reloadhttps://github.com/simstudioai/sim/pull/9852/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
feat/v2-workspace-member-managementhttps://github.com/simstudioai/sim/tree/feat/v2-workspace-member-management
Conversation 12 https://github.com/simstudioai/sim/pull/9852
Commits 6 https://github.com/simstudioai/sim/pull/9852/commits
Checks 83 https://github.com/simstudioai/sim/pull/9852/checks
Files changed https://github.com/simstudioai/sim/pull/9852/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9852/files
feat(api): manage workspace members through the v2 API https://github.com/simstudioai/sim/pull/9852/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/9852/files
bd9e3ce feat(api): update and remove workspace members through the v2 API waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9852/commits/bd9e3ce854da0e34ac2967298dd49d61b9a01f25
f95583c test(workspaces): prove v2 workspace member management end to end waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9852/commits/f95583c0abb1b1a0d909903609a1905172162058
34a5ca6 test(workspaces): prove v2 member management in-process against Postg… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9852/commits/34a5ca6ea5fbc4c46fcd3463b07a3a2c61f4dfe7
ebdce71 fix(api): align v2 workspace member errors and keep the old CLI spelling waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9852/commits/ebdce71a5eb8eb1b98d94f73b8cc9b88f0171be9
1b62796 fix(api): keep workspace member operations in the operations registry… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9852/commits/1b62796c4d04ca4290b7d12dcec95d71c81b8555
84ac111 fix(docs): keep the shipped workspaces members anchor and classify th… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9852/commits/84ac1111df404fe191762c34da0cd693c858a65e
Clear filters https://github.com/simstudioai/sim/pull/9852/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9852/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9852/files
reference.mdx https://github.com/simstudioai/sim/pull/9852/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
workspaces.mdx https://github.com/simstudioai/sim/pull/9852/files#diff-dc8bd36701eb136669053e5d10b6eb5171dcd8349eb6b46be3c590b6fccc8d38
openapi-v2-resources.json https://github.com/simstudioai/sim/pull/9852/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f
content-baseline.json https://github.com/simstudioai/sim/pull/9852/files#diff-8a79568adeca4b6c3a8ae004368a55c4ea49373eb4c4b03523616634ee135dc6
route.ts https://github.com/simstudioai/sim/pull/9852/files#diff-8d1c3a5c2657f0d3f5be909d3eab6e46e902caa0a666b05e7169a05c9d9ab161
route.ts https://github.com/simstudioai/sim/pull/9852/files#diff-2a042bc28891a7a0f8724c21444590fece6f54c6bc1e97364fc05ef7183659fe
route.ts https://github.com/simstudioai/sim/pull/9852/files#diff-312ea52cc8a82213638ab480f5771640a73d3350c8b147a8bf729e8266f26edb
route.ts https://github.com/simstudioai/sim/pull/9852/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
resources.ts https://github.com/simstudioai/sim/pull/9852/files#diff-950bda0ee70aa65034c8e1d522aa2ba2d0f18a6097c65d27b9796b1583c8205c
workspaces.ts https://github.com/simstudioai/sim/pull/9852/files#diff-127eed0040f4c73692c917d73da0206de68349a76181e3d4dc1e95673b5ecc6b
v2-operations.ts https://github.com/simstudioai/sim/pull/9852/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7
v2-route-table.generated.ts https://github.com/simstudioai/sim/pull/9852/files#diff-bb89e263add7c5eb4778158da61b6de5f31ea81866ae718e64a5a7f94ee0a31e
workspace-presenters.ts https://github.com/simstudioai/sim/pull/9852/files#diff-d1adb6301eedd90479338a84eb827142d7add22011f3da036db917d9d447c37f
sections.ts https://github.com/simstudioai/sim/pull/9852/files#diff-18d74188b56d7f22e21281cc1a7e47901241be0cc291d13e17887c2aee6c357b
members.integration.ts https://github.com/simstudioai/sim/pull/9852/files#diff-a5b2782168e2ae9e6cd3f127404754521d7c1506c504ad0b635e460891ab2ab4
route-policies.ts https://github.com/simstudioai/sim/pull/9852/files#diff-36d0f6ca12a7a86c4a604795c83d601c0f064386703383b3b8e14505685a0d6b
manage-permissions.test.ts https://github.com/simstudioai/sim/pull/9852/files#diff-e188937ca7a900426d2e617e8fc2549d1393be1ea77a4bb2263326ddf3e2138c
manage-permissions.ts https://github.com/simstudioai/sim/pull/9852/files#diff-128087554e3715af017cb5eb7086210781687e9808ed4b500434dd806e44043d
operations.ts https://github.com/simstudioai/sim/pull/9852/files#diff-2707028d862024b5ebd5ee5f619ce6a1bf3c8ecec2167b69d81ec60ab734cf94
remove-member.ts https://github.com/simstudioai/sim/pull/9852/files#diff-1725184d78929d05db1abf284a20e87bb1f53dfdfbb0f60d9eb57afc9950f514
management-store.ts https://github.com/simstudioai/sim/pull/9852/files#diff-b5fef1b19362d0359efc11e6c8c99e31f2bbac8a3363d2ada2f0495667a0c1ad
public-queries.ts https://github.com/simstudioai/sim/pull/9852/files#diff-5e5715fe7f199576b89beac2dc5078cb5d66adbc9453bd912e651321374a1e3d
commands.ts https://github.com/simstudioai/sim/pull/9852/files#diff-5b27c3986f1d8efb7c666a86dc02bf70fe6c52509f71fba2df57e706b9bc729d
v2-api.ts https://github.com/simstudioai/sim/pull/9852/files#diff-e856e756b18965607efb943e85bad153871936ce3ee5180ec2e8073a28dd1dd7
client.test.ts https://github.com/simstudioai/sim/pull/9852/files#diff-a7bd98d04242cd3286ca5e6087ed418fa75fc612d089ee8956770c273aed690b
execute.ts https://github.com/simstudioai/sim/pull/9852/files#diff-9b9f263ee819a4e3afa1e15d5279cd33317053160feb3500a08e73969a365111
group-default.test.ts https://github.com/simstudioai/sim/pull/9852/files#diff-561dc87da20b4ca297e714e704d87b27c33dee40a419e39f4b0762be9905210f
check-unused-exports.baseline.json https://github.com/simstudioai/sim/pull/9852/files#diff-4b59a8526a4f226dffb0fbf6b8ec25d3082ab45da697f584eaaca4bd483c928f
generate-cli-docs.ts https://github.com/simstudioai/sim/pull/9852/files#diff-0aa378f7eeb9307d7d984a3774e4e932e57f7d7e0d685c03012706e7654b9515
apps/docs/content/docs/cli/reference.mdxhttps://github.com/simstudioai/sim/pull/9852/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
View file https://github.com/simstudioai/sim/blob/84ac1111df404fe191762c34da0cd693c858a65e/apps/docs/content/docs/cli/reference.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9852/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9852/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
https://github.com/simstudioai/sim/pull/9852/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
https://github.com/simstudioai/sim/pull/9852/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
apps/docs/content/docs/cli/workspaces.mdxhttps://github.com/simstudioai/sim/pull/9852/files#diff-dc8bd36701eb136669053e5d10b6eb5171dcd8349eb6b46be3c590b6fccc8d38
View file https://github.com/simstudioai/sim/blob/84ac1111df404fe191762c34da0cd693c858a65e/apps/docs/content/docs/cli/workspaces.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9852/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9852/files#diff-dc8bd36701eb136669053e5d10b6eb5171dcd8349eb6b46be3c590b6fccc8d38
https://github.com/simstudioai/sim/pull/9852/files#diff-dc8bd36701eb136669053e5d10b6eb5171dcd8349eb6b46be3c590b6fccc8d38
https://github.com/simstudioai/sim/pull/9852/files#diff-dc8bd36701eb136669053e5d10b6eb5171dcd8349eb6b46be3c590b6fccc8d38
Please reload this pagehttps://github.com/simstudioai/sim/pull/9852/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9852/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.