Copilot seat REST API rejects outside collaborators, while the UI can assign them a seat #213921
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
The discrepancy you are encountering between the Web UI and the REST API comes down to how GitHub's backend endpoints validate organization user scope: Why the REST API Fails with 404:
Programmatic Workarounds for Automated Pipelines:Until GitHub aligns the REST API schema with the web UI's collaborator scope, here are two supported automation workarounds:
If this clarifies the API constraint and provides a viable automated team routing pattern, please consider marking this as the accepted answer. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Copilot Enterprise
Body
The org Copilot seat REST API rejects outside collaborators, while the web UI can assign them a seat.
We run a hiring organization where candidates work in a private repository as outside collaborators. By design, they must never become org members. We want to give each candidate a Copilot Business seat for the interview automatically, from our provisioning automation (a GitHub App), and remove it when the interview ends.
The UI supports this. The docs (Grant access) say:
An org owner can do this by hand in Settings → Copilot → Access, and it works.
The REST API does not. Both Add users to the Copilot subscription for an organization and Remove users … reject an outside collaborator:
DELETE.2022-11-28and2026-03-10.GET /orgs/{org}/copilot/billing/seatsdoes list outside collaborators' seats.So outside collaborators' seats can be read through the API, but they can only be assigned in the UI.
The alternatives don't work for us:
selected_teams) only hold members.Request: let
POSTandDELETE /orgs/{org}/copilot/billing/selected_usersaccept users who are outside collaborators of the organization, as the UI already does. To keep the API from accidentally inviting someone to the org, it could still reject users who are neither members nor outside collaborators.All reactions