Forum Discussion
Sharepoint API - REST
- Feb 28, 2019
Hi Taron1645
in this case you're permission settings is not correct.
Please use this one
Cheers,
Federico
Yes the issue is that I am able to access certain sites and get successful response and getting 401 unauthorized for others. I am not sure where the problem is.
Below is the endpoint
https://yyyy.sharepoint.com/sites/dept/XXXX/_api/Web/SiteGroups/GetById(6180)/Users
Hi Taron1645
/_api/Web/SiteGroups/ tipical needs the setting I share with you, if the user is not a group member.
Could you try to make a basic call i.e. https://yyyy.sharepoint.com/sites/dept/XXXX/_api/Web for every sites?
Are you using client / secret for authentication?
- Taron1645Feb 28, 2019Copper Contributor
Hi Frederico,
I made a basic call to _api/Web to couple of sites, I am getting similar results. One is successful, the other is 401 error. I am using Client/Secret/Certs for authentication.