AZure AD Enterprise Applications API

Jared Felsman 11 Reputation points
2020-10-26T23:48:39.817+00:00

Hi,
Is there an API available that allows us to retrieve the applications available to the currently logged in user? We have a requirement to display the list of apps ( for the current user ) in a SharePoint site. There doesn't appear to be an endpoint in Graph for the user only for managing the applications as an administrator.

Thanks in advance.

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

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,771 Reputation points Microsoft Employee
    2020-10-27T09:00:39.523+00:00

    Hello @Jared Felsman , thank you for reaching out. I guess the following Microsoft Graph API might help you:
    https://graph.microsoft.com/v1.0/users/[user-id]/appRoleAssignments

    So the idea is when a user is logged in to the app, you can first call this api. From its response, you would be able to fetch the Service Principal Id labelled as resourceId in the response.
    Once you have the Service Principal Id, you can make another Graph API call to get the service principal details for that corresponding service principal id by using the following Graph API:
    https://graph.microsoft.com/beta/servicePrincipals/[service-principal-id]

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as an Answer; if the above response helped in answering your query.


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.