Expand Minimize
This topic has not yet been rated - Rate this topic

SPWeb.GetSiteAppPrincipals method

SharePoint 2013

Get the app principals in the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public IEnumerable<SPSiteAppPrincipalInfo> GetSiteAppPrincipals()

Return value

Type: System.Collections.Generic.IEnumerable<SPSiteAppPrincipalInfo>
All app principals in the site collection. Those app principals are the ones either have been explicitly granted permissions or the ones have visited the site collection.

It's an expensive operation.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.