Get Site collection details - SharePoint APP only Principal

Brass Contributor

I am trying to get the list SharePoint apps  that are registered from - [Site Collection URL]/_layouts/15/AppRegNew.aspx page and their sitecollections

I am able to retrieve the following app details only (App name, app id, app secret and expiration period) using MSOnline Powershell command Get-MsolServicePrincipal 

 

Is there a way to get the Site collection url in which the APP Is registered ? 

2 Replies

@Santhosh Sankaran I'm running into the same thing. Nothing out there on this. We'd like to understand who out there in the company are using AppIDs and to which SharePoint Site Collections they are associated.

 

Using Graph API (you can test using https://developer.microsoft.com/en-us/graph/graph-explorer ) you can pull info about a particular AppID, even if it was created from the SharePoint side using /AppRegNew.aspx

 

Problem is there is no owner info in the properties returned when hitting above endpoint. 

Microsoft is allowing you to query for them, and you can even see some details in Azure Portal (when searching using Enterprise Applications under Azure Active Directory) but there is a disconnect with the associated SharePoint site collection.