Use PowerShell scripts to remove stale System Administrator role assignments in bulk

Important

This content is archived and is not being updated. For the latest documentation, go to Administer Microsoft Power Platform. For the latest release plans, go to Dynamics 365, Power Platform, and Cloud for Industry release plans.

Enabled for Public preview General availability
Admins, makers, marketers, or analysts, automatically May 1, 2023 Aug 15, 2023

Business value

This feature enables you to have better control over security in Dataverse environments. You can easily produce a list of users assigned to the System Administrator role and remove assignments, as needed.

Feature details

With this feature, you can use PowerShell scripts to remove stale System Administrator role assignments in Dataverse environments in bulk. Specifically, you’ll be able to:

  • Review a list of users assigned to the System Administrator role and decide who must be removed from the role.
  • Execute PowerShell commands to remove users from the System Administrator role in one or more environments.

The PowerShell scripts are available in GitHub.

See also

Microsoft.PowerPlatform.UserManagement.Powershell scripts (docs)