I am having read permission on SharePoint online list, however, I would like to add an new List Item to a SharePoint Online custom list using REST API. If I try I receive an “Access denied” error.
Thanks, Manju
No you cannot. REST executes on behalf of the logged in user. There is no way to elevate your permissions using REST.
Yes, absolutely correct, I tested that we can not add item with read access using REST API. But still seeking for any possibility to add item to list.
No, I can’t run with the account that has permissions such as edit or contribute. If anything is there to add item with read access. That would be helpful for me.
No you cannot. REST executes on behalf of the current user. There is no way to augment/elevate your permissions.
Can’t you run as an account that has permissions to do this?
Why not give the user contribute access?
An approach could be to have a primary list they add items to. Then a workflow runs, elevates permissions and sets the values in the real list you want the data in.