Unable to get PWA projects using rest APIs

Shivam Kumar 6 Reputation points
2020-09-22T09:40:48.583+00:00

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.

SharePoint
SharePoint
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
    2022-06-28T06:48:30.95+00:00

    Same issue here, any suggestion?

    0 comments No comments

  2. Artyom Antyipin 1 Reputation point
    2022-08-19T04:36:56.437+00:00

    Same issue here. Has anyone found a solution?

    0 comments No comments

  3. Alexandre Girard-Gagnon 0 Reputation points
    2023-02-16T18:31:46.7833333+00:00

    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