Skip to content

Deactivate Workspace Members

import { Aside } from ‘@astrojs/starlight/components’;

Deactivates the workspace members named in a source table. Use it to automate offboarding from an authoritative list — an HR extract or an access review — rather than deactivating people by hand.

Pair it with Get Workspace Members to build the list of who should no longer have access.

The step deactivates members only for someone who holds permission to manage members. That is the person who started the run. For a run no person started, such as a scheduled run, it is the person who last saved the step. When they don’t hold it, the step stops before it deactivates anyone, with an error saying whose permission is missing.

Only a workspace admin can deactivate a workspace admin. The step runs as its project’s service account, which is never a workspace admin, so when its list includes admins it leaves those admins active, whoever started the run, deactivates everyone else, and then ends in error with a message that gives how many members it deactivated and names each admin it left active. The members it deactivated stay deactivated. To deactivate an admin, have a workspace admin do it in Identity.

How rows in the source table are matched to members. Choose one:

  • Email (default)
  • User name