0
votes

I want to delete a service principal (an Azure AD application) from the list of applications of a given customer, so I am query for the list of Service Principals in the tenant with: https://graph.microsoft.com/beta/servicePrincpials

The issue is that I can see many applications but not the one we are working on. This application is not added manually through the Azure Portal but through an Admin consent dialog shown to the customer to grant the requested permissions to our application to access the Azure AD.

If I copy the object-id from Azure Portal I am able to get the application, or to delete it using the graph api, but I am not able to get it through the list of applications.

1
Solved: I was not getting the full list of applications. Using "$top=999" I get a huge list of applications and between then the one I am looking for. Also I see I can use filters to get a shorter list filtering by appId for example (see link). No idea how to close this issue since its solved.Gabriel Gomez
Hi, you could post it as an answer, then it can help other community members.Joy Wang-MSFT

1 Answers

0
votes

Solved: I was not getting the full list of applications. Using "$top=999" I get a huge list of applications and between then the one I am looking for. Also I see I can use filters to get a shorter list filtering by any property (see link) like displayName: https://graph.microsoft.com/beta/servicePrincipals?$filter=displayName eq 'name'