Error when accessing Project Server through Postman using Bearer authentication

Copper Contributor

I'm trying to access our project web app using Project Server's REST API. I have already went though the configuration from Registering a new App :


Then, I created the authorization settings

with this XML Permission Request. 


<AppPermissionRequests AllowAppOnlyPolicy="true"> 
    <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" /> 


I was easily able to retrieve the Bearer Token for the request in Postman, so I guess the above steps worked fine.

I receive an error when I try to access any of the endpoints using the given Bearer Token : {{site_url}}/_api/ProjectServer/{{some_endpoint}}
(I've also tried using ProjectData instead of ProjectServer, but no luck either)


When I click Send I received the following message


    "error": {
        "code": "-1, System.InvalidOperationException",
        "message": {
            "lang": "fr-FR",
            "value": "User:<customercontent></customercontent> not found in Active directory or in project db."



I've literally checked every thread about the subject, but I can't seem to find any workaround. Have I missed a step? It seems like the authentication is trying to find a user in AD or in the Project Database instead of using the Bearer authentication. I've tried entering this URL in a browser AFTER I authenticated with my Microsoft account, and it worked.





0 Replies