SharePoint Online | Granting access using SharePoint App-Only | Audit and Report

Oscar 177 Reputation points
2023-02-20T13:59:05.1533333+00:00

Hello,

Can you please help to find a way to list all applications registered for SharePoint?

And what kind of permissions do those applications have, like tenant-wide, per site, etc?

Else in this article, it explains how to create an API but not how to list them all:

https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs

Found a way can run Get-MsolServicePrincipal but then this info is not clear,

Which API is using by which SharePoint,

And is this API exposed to all SharePoint sites or only to specific ones?

 

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-02-21T05:43:08.3933333+00:00

    Hi @Oscar

    Per my research, there is no such function to list the permission or scope of the SharePoint App-only. We can only get the list of Apps that have access to the content within the site collection by following url

    https://<SharePointWebsite> /_layouts/15/AppPrincipals.aspx
    
    

    I will recommend you to use Azure AD app only as alternatives, and the Azure AD will provide more information about permission level.

    User's image

    Here is the document for you to reference

    https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

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.