Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

Problem with limited permissions users via REST API

$
0
0

Hi guys, not sure if this is the right place to post dev question so please point me to the right place if its not...

I have a customer that gave a user permission to one specific list.

for example:

https://[tenant].sharepoint.com/sites/qa/permissions/lists/tasks

The user cannot browse to the site:

https://[tenant].sharepoint.com/sites/qa/permissions

But he can get to the list with no problems.

When we try to get the list items using REST api, that user gets "UnauthorizedAccessException" error.

Rest API url we tried:

https://[tenant].sharepoint.com/sites/qa/permissions/_api/web/lists/getbytitle('tasks')

https://[tenant].sharepoint.com/sites/qa/permissions/_api/web/lists/getbytitle('tasks')/items

Users with at least read permissions on the site /sites/qa/permissions have no problems getting to both these API endpoints.

Is there a different way to make the REST API work for users with permissions to just one list?

Or is there a limitation of the REST API and it does not support that?

Thanks!


Regards, Shai Petel.


Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>