Questions tagged [sharing-rule]

Sharing Rules are used to make automatic exceptions to your organization-wide sharing settings for defined sets of users.

Filter by
Sorted by
Tagged with
3
votes
2answers
662 views

Can I force a unit test to wait for a Sharing Rule to be created?

Ideally, I'd like to write a unit test to help me "dummy check" for unexpected effects of the upcoming guest user sharing setting changes. We'd had some controller/trigger code "gracefully handling" ...
2
votes
1answer
81 views

community plus user with sharing rule read/write on contact soqls running longer in winter 19

I need help in resolving the below issue. I have a community plus user. The user is part of public group and the group has read/write access to all contact records and read access to account records ...
14
votes
1answer
11k views

How to deploy more than one sharing rule in one deployment?

If I keep two criteria based sharing rules in Account.sharingRules XML file, there is a deployment error in start line of the the second rule: sharing operation already in progress. How do we deploy ...
7
votes
3answers
4k views

Cannot view Activity history

I have an activity in the Account history that was created by one user (user A) but is not visible by user B. Both Users are have the same profile and are part of the same User Group. The Account ...
4
votes
1answer
2k views

What does Read/Write on Sharing Setting mean when Profile for Object is Read only?

I was troubleshooting a scenario where a User was trying to create a Related Record (say Object A) on Opportunity which had a Master Detail relationship and was facing insufficient rights access issue....
3
votes
1answer
2k views

Sharing rules and Inner classes

If I have 2 classes, Class A and class B. Class B has an inner class called Class C. Class A calls class C. My question is whether class c enforces sharing rules or not. Public with sharing class a{ ...
3
votes
1answer
11k views

how many sharing rules can we create at maximum on standard object in salesforce

As we all known that we can create 300 Sharing Rules (Both Owner- and Criteria-based) and 50 Sharing Rules (Criteria-based Only) on Custom object. could you please tell anyone how many sharing rules ...