question

ShivamKumar-9413 avatar image
1 Vote"
ShivamKumar-9413 asked MartonKishonthy-9165 published

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.

office-sharepoint-online
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I've the same issue using a SharePoint App-Only registration. Did you find a solution?

1 Vote 1 ·

1 Answer

MartonKishonthy-9165 avatar image
0 Votes"
MartonKishonthy-9165 answered MartonKishonthy-9165 published

Same issue here, any suggestion?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.