I am closing this out; What I ended up doing is running a get-azureadapplication, then grabbed those objectids and ran the get-azureadapplicationowner against that but pulling out the objecttype (service principal) and app display name, which equates to 'owner' in the azure portal.
Report to list all apps owned by an application registration or service principle
Hi,
We have an application registered as a service principal that is used to create via automation other app registrations. When this is done, the owner of the app is this 'app' that is used for automation.
When I try to list all apps 'owned' by this app/service principal, I get an error. I think it is because it is not a user. The command I was using is Get-AzureADUserCreatedObject. This errors and I think it's because this app is not a 'user.'
Does anyone know what command I can use to list out all apps owned by this app/service principal?
Thanks in advance for any info.
Gina
1 additional answer
Sort by: Most helpful
-
JamesTran-MSFT 36,811 Reputation points Microsoft Employee
2020-11-05T00:34:32.46+00:00 @Komoroske, Gina
Thank you for your question!Can you try running:
Get-AzureADServicePrincipalCreatedObject -ObjectId <String> [-All <Boolean>] [-Top <Int32>] [<CommonParameters>]
For more information you can reference: Get-AzureADServicePrincipalCreatedObject
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.