Report to list all apps owned by an application registration or service principle

Komoroske, Gina 376 Reputation points
2020-11-04T15:53:58.153+00:00

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

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,327 questions
0 comments No comments
{count} votes

Accepted answer
  1. Komoroske, Gina 376 Reputation points
    2020-11-05T01:44:28.177+00:00

    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.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.