getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.91k stars 4.17k forks source link

Organization API to add members to teams #16721

Open max-wittig opened 4 years ago

max-wittig commented 4 years ago

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/
jules2689 commented 4 years ago

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 commented 4 years ago

I found this undocumented API PUT /organizations/#{org_slug}/members/#{user_id}/ that worked with my auth token and the body { teams: [team_slug] }

I am trying to invite a member to the organisation and add to a team. Can you elaborate how you did it?

github-actions[bot] commented 3 years ago

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 commented 3 years ago

Ping @getsentry/enterprise for triage

leedongwei commented 3 years ago

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 commented 1 year ago

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.