none
Access OData from Postman

    Pertanyaan

  • Hello.

    I'm tring to access Project Online OData from Postman (generally, I'll need it in MS Flow HTTP action, but for testing I'm using postman).

    I've tried two ways:

    1. with basic Authentication using user login and password. The result was UnauthorizedAccessException, Access denied. You do not have permission to perform this action or access this resource. User with these credentials have permissions (if i'll login in chrome and use odata URL I'll get information)

    2. I've registered my app /_layouts/15/appregnew.aspx, added permissions /_layouts/15/appinv.aspx, retrieved tenant id, then access token and finally put this token into Authorization header like Bearer <token>. And result was the same - Access denied.

    What is the right way to access OData?

    Sabtu, 28 April 2018 07.11

Semua Balasan

  • Hello,

    The Project Online OData API doesn't support app only auth, it requires a username + password too.

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS | MVP | Downloads

    Sabtu, 28 April 2018 11.48
    Moderator
  • I've tried Basic Auth and my username and password.

    As you see - no success. What is the right way?

    Senin, 30 April 2018 12.26
  • Hi Yaroslav88 - https://pwmather.wordpress.com/2018/05/09/change-required-for-sharepoint-online-projectonline-rest-api-calls-when-using-webrequest-powershell-dotnet-office365dev/ should help.

    Best regards,

    Brian


    Best regards,

    Brian Smith

    Senior Escalation Engineer, Project Support

    Blog: https://blogs.msdn.microsoft.com/brismith  Twitter:   LinkedIn:   Facebook:

    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

    Rabu, 09 Mei 2018 16.02
    Pemilik