• John-Henry Gross
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies
Get permission related information for security related objects
With the combination of PermissionSetAssignment and ObjectPermissions tables we can get permission information for objects (information such as users who can read account object information). But ObjectPermissions.SObjectType not support for all objects. i.e it doesn’t support for objects such as User, Group, Partner, Profile, Task etc …
So from where can I get security related information for those objects?

We can set sharing settings for objects through Setup --> security control --> sharing rules in Salesforce.
After that we can get those security information through API’s object share table. i.e If I change sharing settings for Account object then I can access them via AccountShare table.
But there are few objects those have share tables. i.e. Contract, Document, Group, Idea, Task etc ..
How can I get sharing information for those objects?
The permissionSet ID returns from API is different than the display one
I have permission set with ID XXXX (I can see that permission set information via http://<salesforce_url>/XXXX ).
When I query permission set data from PermissionSetAssignment via API. The PermissionSetAssignment.PermissionSet.ID have a different value for the same permission set.
For example that id value is similar to XXXXGAO. Anyhow I can access permission set via http://<salesforce_url>/XXXXGAO too.
So what is the relationship between these two ids? If I have one id (i.e XXXXGAO) how can I retrieve other one and vice versa?
Get permission related information for security related objects
With the combination of PermissionSetAssignment and ObjectPermissions tables we can get permission information for objects (information such as users who can read account object information). But ObjectPermissions.SObjectType not support for all objects. i.e it doesn’t support for objects such as User, Group, Partner, Profile, Task etc …
So from where can I get security related information for those objects?

We can set sharing settings for objects through Setup --> security control --> sharing rules in Salesforce.
After that we can get those security information through API’s object share table. i.e If I change sharing settings for Account object then I can access them via AccountShare table.
But there are few objects those have share tables. i.e. Contract, Document, Group, Idea, Task etc ..
How can I get sharing information for those objects?
The permissionSet ID returns from API is different than the display one
I have permission set with ID XXXX (I can see that permission set information via http://<salesforce_url>/XXXX ).
When I query permission set data from PermissionSetAssignment via API. The PermissionSetAssignment.PermissionSet.ID have a different value for the same permission set.
For example that id value is similar to XXXXGAO. Anyhow I can access permission set via http://<salesforce_url>/XXXXGAO too.
So what is the relationship between these two ids? If I have one id (i.e XXXXGAO) how can I retrieve other one and vice versa?