Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

mat velloso; sharepoint/lists/odata calls

Back to Forum: Tech Off
  • User profile image
    LuisCarlos​Chan9

    I just listened to velloso's azure/sharepoint where he used this command: https://dynertec.sharepoint.com/_api/web/getfolderbyserverrelativeurl('Documents')/files.

    when I tried it I get an access denied message even when I log into 365.

    Question: what is the procedure to  use the odata commands as described by Velloso without getting the access denied message?

    Thanks

  • User profile image
    figuerres

    OData is a form of rest web service

    I am not sure what version is used on the site you are looking at but with OData 4 on IIS

    (what I am working with)  the setup is that you will require authorization to access most things.

    this is often done with a Json Web Token but may be done in other ways.

    ok took a look and this is the older xml and data services stuff, but the same idea applies that you need to do some kind of login and the site may need to grant your login a role that allows you to access the endpoint.

    if he was showing it in a demo he may not be inviting everyone to go there.

    he probably did a login with an account that is authorized.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.