05-29-2019 09:45 AM
05-29-2019 09:45 AM
Hi. I'm having a lot of trouble trying to access Project Online data through the REST interface. (I also posted this to the Sharepoint Dev community, not sure which place is best).
I understand Oauth2 and I'm successfully getting an authorization token using a client id and secret that I obtained via the https://<<tenant>>.sharepoint.com/sites/pwa/_layouts/15/appregnew.aspx page.
I can use the bearer token to do a GET on https://<<tenant>>.sharepoint.com/sites/pwa/_api/web/lists without a problem. However when I try to access https://<<tenant>>.sharepoint.com/sites/pwa/_api/ProjectData/Projects I get an authorization error, code 20010, "Access Denied".
The user I'm logging in with is the company administrator, and has also been added as a site admin for the Project site explicitly by name. Also when I'm logged in as that user, I can navigate to the above link and get the data inside the browser. That's using login cookies I guess, not oauth.
It seems obvious that I've not added the correct permissions, but I've given every permission I can find to my user through the admin website, not only to the project site but to the root site.
I'm pretty stumped, I'd be grateful for a trailhead.
06-03-2020 08:09 AM
Hi Rod it sounds like you are just granting SharePoint permissions as you talk about sites. You'll need a project level 3 license and project web app permissions. Go to pwa settings and ensure you are in the administrators group as well. project web app uses its own set of permissions. Well I am assuming you are in project server permissions mode ....
06-27-2020 01:20 PM
I'm having the same/similar issue as rodfrey. But I don't have access to the sharepoint server or our company's Project Online (PWA?) console. Our current admin inherited it.
When you say "Go to pwa settings and ensure you are in the administrators group as well. " what, exactly does that entail? Where are the pwa settings found - where might I direct our admin and what to look for there?