Forum Discussion
Taron1645
Feb 28, 2019Copper Contributor
Sharepoint API - REST
Hello,
I am trying to access sharepoint REST api using OAuth. I am getting 401 unauthorized exception when I try to call the url
https://<<tenant>>.sharepoint.com/sites/pub1/_api/Web/SiteGroups/GetById(<<groupid>>)/users |
Does this need "full control" permissions? Attached are the permissions setup in azure portal.
Hi Taron1645
in this case you're permission settings is not correct.
Please use this one
Cheers,
Federico
Hi Taron1645 ,
azure permission looks good.
Try to change group settings from "Group Members" to "Everyone"
Cheers,
Federico
- Taron1645Copper Contributor
Hi Taron1645
1) Did you call correctly https://<<tenant>>.sharepoint.com/sites/pub1/_api/Web/ , without permissions problems?
2) You can access to group settings in this way
- Select Site Actions > Site Settings > People and Groups.
- Select Settings > Group Settings
- For each group listed, Navigate to "Who can view the membership of the group?" section.
Cheers,
Federico