3

From couple of days, I am trying to access Custom made SharePoint Online (Office 365) List for CRUD Operation with the help of Rest APIs Endpoints using Postman, but all the time I am getting "Access Denied" Response in body.

I have got OAUTH Access Token with the help of Client Id, Client Secret, & Bearer Realm Token. I am also sending Access Token in Header, also i am given FULL-CONTROL Permission level by the SharePoint Admin.

Hope you got my point. Please let me know for any further Issue clarification.

Note : List of Rest URL Endpoints I can Access are given below :

http://YourSiteName.sharepoint.com/_api/site/rootWeb/webinfos
http://YourSiteName.sharepoint.com/_api/web/lists

List of Rest URL End-Points I am not able to Access are :

http://YourSiteName.sharepoint.com/_api/web/lists/getbytitle('ListName')
http://YourSiteName.sharepoint.com/_api/web/lists/lists/getbytitle('listname')/items
7
  • To get List Items you dont need to pass FormDigestValue Commented Mar 11, 2016 at 9:42
  • i am getting using this URL siteUrl+"_api/lists/getbytitle('"+name+"')/items" Commented Mar 11, 2016 at 9:43
  • @VishalHalani I tried without FormDigestValue even though i got "Access Denied" in Response Commented Mar 11, 2016 at 9:59
  • are you doing in android? Commented Mar 11, 2016 at 10:00
  • @VishalHalani Not yet. But after getting successful response in POSTMAN i will try on Android App. Commented Mar 11, 2016 at 10:03

1 Answer 1

2

I was not including site name in the URL.

http://YourSiteName.sharepoint.com/sites/**YOUR_Site_Name**/_api/web/lists/getbytitle('ListName')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.