Same issue here, any suggestion?
Unable to get PWA projects using rest APIs
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.
3 answers
Sort by: Most helpful
-
-
Artyom Antyipin 1 Reputation point
2022-08-19T04:36:56.437+00:00 Same issue here. Has anyone found a solution?
-
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.