Hi everyone,
We’re excited to announce the general availability of new public Organization APIs, empowering all organization admins to automate their workflows! These APIs are available to organizations on both the original and centralized user management experiences.
For admins on the original user management experience, having APIs to automate user and group management tasks has been a long-standing request. With this release, you can now simplify your workflows and integrate with internal systems, streamlining your job.
🟢 New v2 Organization APIs
The following 12 APIs are now generally available:
Directory:
- Get directories
GET /v2/orgs/{orgId}/directories
Group management:
- Create group
POST /v2/orgs/{orgId}/directories/{directoryId}/groups
- Delete group
DEL /v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}
- Grant access to group
POST /v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/role-assignments/assign
- Remove access from group
POST /v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/role-assignments/revoke
- Add user to group
POST /v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/memberships
- Remove user from group
DEL /v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/memberships/{accountId}
- Get groups in an organization
GET /v2/orgs/{orgId}/directories/{directoryId}/groups
User management:
- Suspend user access in directory
POST /v2/orgs/{orgId}/directories/{directoryId}/users/{accountId}/suspend
- Restore user access in directory
POST /v2/orgs/{orgId}/directories/{directoryId}/users/{accountId}/restore
- Remove user from directory
DEL /v2/orgs/{orgId}/directories/{directoryId}/users/{accountId}
- Get users in an organization
GET /v2/orgs/{orgId}/directories/{directoryId}/users
Organizations with the centralized user management experience will only have one directory. Organizations with the original user management experience may have multiple directories, and can use the 'Get directories' API to specify which directory (or userbase) to make updates to.
While similar APIs have existed for centralized user management, this update extends those capabilities to organizations using the original user management experience ensuring everyone can benefit from API-powered automation.
⚠️ Deprecation of v1 Organization APIs
With the general availability of these new APIs, we’ll soon begin deprecating the following equivalent v1 Organization APIs.
Group management:
- Create group
POST /v1/orgs/{orgId}/directory/groups
- Delete group
DEL /v1/orgs/{orgId}/directory/groups/{groupId}
- Assign roles to a group
POST /v1/orgs/{orgId}/directory/groups/{groupId}/roles/assign
- Revoke roles from a group
POST /v1/orgs/{orgId}/directory/groups/{groupId}/roles/revoke
- Add user to group
POST /v1/orgs/{orgId}/directory/groups/{groupId}/memberships
- Remove user from group
DEL /v1/orgs/{orgId}/directory/groups/{groupId}/memberships/{accountId}
- Search for groups within an organization
POST /v1/orgs/{orgId}/groups/search
User management:
- Suspend user access
POST /v1/orgs/{orgId}/directory/users/{accountId}/suspend-access
- Restore user access
POST /v1/orgs/{orgId}/directory/users/{accountId}/restore-access
- Remove user access
DEL /v1/orgs/{orgId}/directory/users/{accountId}
- Search for users in an organization
POST /v1/orgs/{orgId}/users/search
These v1 APIs will remain available until 30 June 2026. After this date, they will be fully deprecated.
We recommend starting your migration to the new APIs as soon as possible to take advantage of improved functionality and consistency.
We’re excited to see how you use these new APIs to supercharge your admin workflows!
If you have feedback, questions, or want to share how your organization is using these APIs, drop a comment below. We’d love to hear from you!
Aneita