sharepoint REST API for Project Data

Varun 1 Reputation point
2020-08-27T21:31:53.697+00:00

We have to consume sharepoint project information using rest API's with the access token generated from a registered app
https://medium.com/@anoopt/accessing-sharepoint-data-using-postman-sharepoint-rest-api-76b70630bcbf

However we are running into below error when getting the product tasks with this URL. (Which works when accessed via browser/cookie access)

https://xxxxxx.sharepoint.com/sites/pwa/\_api/ProjectData/Projects(guid'xxxxxx')/Tasks

{
"odata.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.

Microsoft 365 and Office SharePoint For business Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Asya Brevdo 1 Reputation point
    2020-10-07T20:47:30.753+00:00

    To all asking, we are still not able to resolve the issue. We are still hoping someone will answer. But meanwhile, we went on using microsoft flow tool, instead of APIs

    0 comments No comments

  2. Ranjeet K. Singh 1 Reputation point
    2022-10-08T17:59:47.987+00:00

    Hello All,

    Please follow steps suggested in below YouTube video. It's working for me.

    https://www.youtube.com/watch?v=aD_WBiyKjd0

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.