Skip to content

Organization API to add members to teams #16721

@max-wittig

Description

@max-wittig

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/

Activity

jules2689

jules2689 commented on Mar 2, 2020

@jules2689

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

flmmartins commented on Aug 6, 2020

@flmmartins

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

github-actions commented on Jan 6, 2021

@github-actions
Contributor

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

BYK commented on Mar 4, 2021

@BYK
Member

Ping @getsentry/enterprise for triage

leedongwei

leedongwei commented on Mar 11, 2021

@leedongwei
Member

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

fmiqbal commented on Feb 13, 2023

@fmiqbal

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @BYK@chadwhitacre@gaprl@leedongwei@jules2689

        Issue actions

          Organization API to add members to teams · Issue #16721 · getsentry/sentry