Skip to main content
Post

Org-level admin.users.setRegular API method calls now remove Workspace Owner roles

Slack changed how the admin.users.setRegular API method works when you pass an org ID as team_id. It now removes every Workspace Owner role the user holds in the org, including roles they had before becoming an org admin or owner. Before, a demoted org admin or owner kept their Workspace Owner roles. The change brings the API in line with how demotion already works in the admin dashboard.

The new behavior applies to any user you call it on, including people who are already regular members of the org. Calls with a workspace ID work the same as before.

There's also a new error, failed_to_set_regular_on_workspaces. It means the org-level change succeeded but one or more workspace-level changes failed. Call the method again to retry.

If your app demotes org admins or owners and expects them to stay Workspace Owners on certain workspaces, call admin.users.setOwner with each workspace ID after the org-level demotion. The Admin API is only available on Enterprise plans.

Loading replies