function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alexey@YoxelAlexey@Yoxel 

Finding out about permissions via REST API

Hello,

 

 Could someone help me?

 

 When reading a bunch of objects from Salesforce using REST API (lets say all contacts) is there a way to see which objects the current/connecting user can edit/update?

 

 Is there a way in REST API to find out about object permissions?

 

Thank you,

Alexey

Vinita_SFDCVinita_SFDC

Hello Alexey,

 

It is not possible to find on which object user has permission while making REST API call. You can fetch the profile of user but further you can not find profile provides access on which objects.

 

Anyways if user doesn't have edit access on an object then he would not be able to make any changes, niether via UI nor via any API.