Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Access Denied: The app could not be authenticated or is not authorized to query licenses of this Product ID.

$
0
0

I am trying to add licensing to my app. When I call:

ClientResult<AppLicenseCollection> licenseCollection = Microsoft.SharePoint.Client.Utilities.Utility.GetAppLicenseInformation(clientContext, productId);
            clientContext.Load(clientContext.Web);
            clientContext.ExecuteQuery();

this results in:

Access Denied: The app could not be authenticated or is not authorized to query licenses of this Product ID.

I have added both a license and the app to my sharepoint site.

Any idea what could be happening?

Thanks!


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>