You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: We're changing the way you add new members to your organization
4
+
created_at: 2014-08-05
5
+
author_name: jakeboxer
6
+
---
7
+
8
+
Today, we're announcing a change to the way organization owners add new members to their organization.
9
+
10
+
Previously, if you were an organization owner, you could use the [add team member][add-team-member] endpoint to add any GitHub user to any team on your organization without any sort of approval from them. Now, we're increasing user security by sending [invitations][org-invitations] to users when they're added to teams on organizations that they aren't yet a part of.
11
+
12
+
With this change, if you use the [add team member][add-team-member] endpoint to add a user to a team and that user isn't already on another team in your organization, the request will fail.
13
+
14
+
### The new Team Memberships API
15
+
16
+
You should change all your [add team member][add-team-member] requests to use the new [add team membership][add-team-membership] endpoint. This new endpoint works exactly the same as the old one, with one important change: if the membership being added is for a user who is unaffiliated with the team's organization, that user will be sent an invitation via email.
17
+
18
+
Unlike the [add team member][add-team-member] endpoint, a successful request to the [add team membership][add-team-membership] endpoint does *not* guarantee that the user is now a member of the team. If you're trying to migrate to the new endpoint and need to know when a user has been successfully added (not just invited) to a team, please check out [TeamAddEvent][team-add-event].
19
+
20
+
### Preview period
21
+
22
+
We're making the new Team Memberships API (and the breaking changes to the [add team member][add-team-member] API) available today for developers to preview. During this period, we may change aspects of these endpoints. If we do, we will announce the changes on the developer blog, but we will not provide any advance notice.
23
+
24
+
While these new APIs are in their preview period, you'll need to provide the following custom media type in the `Accept` header:
25
+
26
+
application/vnd.github.the-wasp-preview+json
27
+
28
+
We expect the preview period to last 30-60 days. At the end of the preview period, the Team Memberships API will become an official component of GitHub API v3, as will the [add team member][add-team-member] API's breaking changes.
29
+
30
+
If you have any questions or feedback, please [get in touch with us][contact]!
0 commit comments