This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adds, lists or removes owners of Azure AD Application and ServicePrincipal objects | |
<# | |
Examples: | |
# Add [email protected] as owner to both app and service principal | |
.\ManageAppAndServicePrincipalOwner.ps1 -Add "[email protected]" -Application -AppId "e1d83a3c-fea5-4315-9591-8d9f185d2d56" | |
# List owners for the app in the contoso.com tenant | |
.\ManageAppAndServicePrincipalOwner.ps1 -List -Application -AppId "e1d83a3c-fea5-4315-9591-8d9f185d2d56" -TenantId "contoso.com" | ft userPrincipalName |