-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Open
Description
Summary
Currently we can just list project users, but I would like to also be able to add users to projects, to teams and to organizations.
Is this planned or did I maybe miss something in the API documentation at
https://docs.sentry.io/api/
Motivation
We have a self-hosted GitLab instance, which integrated with Sentry. Sadly I can't add the people from the instance directly to the organization, project or team.
Additional Context
Example endpoint:
POST /api/0/projects/{organization_slug}/{project_slug}/users/
bufferoverflow, jules2689, flmmartins, kerr-bighealth, kouheiszk and 5 more
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
jules2689 commentedon Mar 2, 2020
I found this undocumented API
PUT /organizations/#{org_slug}/members/#{user_id}/
that worked with my auth token and the body{ teams: [team_slug] }
flmmartins commentedon Aug 6, 2020
I am trying to invite a member to the organisation and add to a team. Can you elaborate how you did it?
github-actions commentedon Jan 6, 2021
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it
Status: Accepted
, I will leave it alone ... forever!"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
BYK commentedon Mar 4, 2021
Ping @getsentry/enterprise for triage
leedongwei commentedon Mar 11, 2021
Thanks for the feedback!
IIRC we don't support assigning users to projects. The flow would be to add the users to a team, then assign to projects to the team.
@bowencai8 I can see how it'll be useful to have a public API for assigning projects to teams as assigning Groups to Resources is not supported by SCIM.
fmiqbal commentedon Feb 13, 2023
In our on premise installation version 23.2.0.dev0, we also struggle to find the solution so we just make the org open. It would be great if I could integrate member adding into my pipeline, currently I only can create teams, create project below its team, and just let the developer know the team url so they can join.