token based
1 TopicUnable to retrieve list items with app-only access token via PnP PowerShell
I created an access token and registered it granting fullcontrol to a site collection. In powershell, I connect via the connect-pnponline cmdlet and everything is fine. I can list items in the site collection using, for example: Get-PnPList That appears to successfully return a list of all of the content in the site collection, including lists, libraries, etc. What I cannot do is retrieve any items from within any of the libraries, lists, or even site pages. The output is just blank, with no error returned. If I try query a specific item ID, I get the message that the item does not exist, although it definitely exists, the site is correct and the list name is correct (copy-pasted from the listed items) Here's the permission XML I used to set up access (obviously, with the proper site information) at https://mysharepointdomain.sharepoint.com/sites/my_site/_layouts/15/appinv.aspx: <AppPermissionRequests AllowAppOnlyPolicy="true"> <AppPermissionRequest Scope="https://mysharepointdomain.sharepoint.com/sites/my_site/_layouts/15/appinv.aspx" Right="FullControl" /> </AppPermissionRequests> It looks like it might be an access denied issue, but I am not sure what else I am missing, since full control was granted to the site collection. Any suggestions would be appreciated. Thanks.Solved3.8KViews0likes4Comments