Forum Discussion
Access Denied when making Project Online API call
Hello rohanw24 ,
The Azure AD permissions don't grant access to Project Online. Typically access to Project Online can be via:
SharePoint Azure ACS using the SharePoint client ID and secret but for some Project Online APIs, you will need to provide a username and password as part of the auth. You could use the SharePointOnlineCredentials class to help auth. These code samples might help: https://github.com/OfficeDev/Project-Samples
Here is a Stack overflow post with a similar query - they went with the SP credentials class too: https://stackoverflow.com/questions/42521163/how-to-get-an-acs-app-only-access-token-for-project-online
Hope that helps
Paul
Hi Paul Mather,
due to you words "...but for some Project Online APIs, you will need to provide a username and password...", do you suggest to use a service account to call the Project's Rest APIs?
I'm trying to access to Project Online Rest APIs with a SharePoint App-Only registration (https://stackoverflow.com/questions/68650241/get-project-web-app-and-project-online-data-with-sharepoint-app-only-registratio )but I received different errors, and I'm start thinking that Project's API cannot be called via clientId and clientSecret/certificate.
Thanks.