About Me

My photo
Bergen, Norway
19th times Microsoft MVP (Security and Windows). IT-Dude @SpareBankenNorge

Friday, November 26, 2021

Change owner for App registration and Enterprise Apps in Azure

 I got a long list of Azure AD App Registration/Enterprise Apps that needed to get a new owner. This is a quite common task since the original owner might have quit or changed role. 

So knowing that this is a task that might appear every now and then I wrote two short and quick PowerShell script to fix this. One for App registration and one for Enterprise Apps, you can, of course, combine them and add lots of error checks and so on but I like KISS

They use a csv import file with the list of apps and the name of the user or group that should be added as owner. I guess it's easy to use it the other way around to remove owners also.


Check out my Github for the file.

App Registrations:
https://github.com/OTvedt/Scripts-For-Sharing/blob/master/Azure/Apps/Set-AzureAppOwner.ps1

Enterprise Apps:
https://github.com/OTvedt/Scripts-For-Sharing/blob/master/Azure/Apps/Set-AzureEnterpriseAppOwner.ps1

Cleaning Up Unknown IAM Assignments Across Azure Subscriptions

  If you manage more than a handful of Azure subscriptions, IAM hygiene quickly becomes one of those tasks everyone knows is important, but ...