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
Rafi Bin-NunRafi Bin-Nun 

Limiting Object List

I know if someone doesn't have read access to an object they won't see it when connecting via API (Jitterbit, Dataloader, Workbench, REST, etc.) However, there are some objects that don't show up in the profile settings (so I'm not sure how to restrict them) but show up in the object list when you connect via API, is there any way of stopping these objects from showing?
 
We have over 90 of these, some examples…
 
ActivityHistory
AppMenuItem
AuthSession
BrandTemplate
BusinessHours
BusinessProcess
ChatterActivity
ClientBrowser
...
...
...
BalajiRanganathanBalajiRanganathan
what API and API method you are using?
you might have to filter the object by its Attribute like queryable and triggerrable etc
Rafi Bin-NunRafi Bin-Nun
Thanks BalajiRanganathan.

As the admin is there a way for me to prevent the user from even seeing these objects? I don't want the user to have to see/filter these objects.
Rafi Bin-NunRafi Bin-Nun
This can be done by restricting the user/profile to API Only and only permissioning them for a specific connected apps and Apex REST classes.