Unable to get PWA projects using rest APIs

Shivam Kumar 6 Reputation points

I want to get sharepoint project information using rest API's with the access token generated from a registered app.
However we are running into below error when getting the projects in postman with below URL. (Which works in browser(after login) when accessed via cookie access)

Url - https://xxxxxx.sharepoint.com/sites/pwa/\_api/ProjectData/\[en-us\]/Projects?format=json

Headers - Authorization - Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Accept - application/json;odata=verbose
Response -

"error": {
"code": "-1, System.InvalidOperationException",
"message": {
"lang": "en-US",
"value": "User:<customercontent></customercontent> not found in Active directory or in project db."
Any help to get past this error would be greatly appriciated.

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,156 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Marton Kishonthy 1 Reputation point

    Same issue here, any suggestion?

    0 comments No comments

  2. Artyom Antyipin 1 Reputation point

    Same issue here. Has anyone found a solution?

    0 comments No comments

  3. Alexandre Girard-Gagnon 0 Reputation points

    Have you ever found a solution or workaround for this? I've been trying for weeks. I'll go crazy if I can't make it work soon...

    I posted on every Microsoft forum and they've just been redirecting me everywhere.

    0 comments No comments