Good Day, Current environment: Azure AD and on-premises AD. Both in sync.
Is there a script that can run against a specific user to find all roles and groups assigned to that user and then revoke access/remove all these roles and memberships?
Note this user is a global admin and so want to revoke access as quickly as possible
Thanks,
CodePudding user response:
With the PowerShell module AzureAD you can build your script:
You can install the module from you Powershell with the following commands:
Install-Module AzureAD
Import-Module AzureAD
Hope this helps!