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
0
votes
1answer
23 views

Salesforce Communities - Records Access

How can I grant Community Users read access to all accounts and contacts, but only edit access to the logged-in user contact and related account? We have Community User licenses only.
0
votes
2answers
38 views

Deletion of records who created it

For example am the owner of the record then only i should be able to delete the record, And i should not be able to delete records created by others.I cant give ModifyAll permission to that profile as ...
0
votes
0answers
6 views

Share records with role based on specific Filed value and role of the record owner

On the Account object, there is a picklist field with value "Domestic" and "Export". User with role name "RSM" created two records for both the value "Domestic" ...
0
votes
1answer
16 views

Share custom object related to Opportunity with Opportunity Team

I have a question surronding sharing of related records with Opportunity teams. We have an custom object A related to the Opportunity object. Opportunities are Public, while Object A is private. Is it ...
1
vote
2answers
31 views

Do we need to set up Roles if we don't care about record ownership?

We have set our org up with Org Wide Defaults set to Private on a few objects. We open them up via Profiles and criteria-based Sharing Rules to Public Groups made up of users. Record ownership means ...
0
votes
0answers
37 views

Can not delete Account field because of Criteria Based Sharing Rule

I am trying to delete a field from the Account object but when I try to do so, I get: This custom field is referenced elsewhere in salesforce.com. Criteria-based Sharing Rules After looking ...
0
votes
0answers
26 views

Share records owned by customer community users in Salesforce

I have been working on setting up sharing rules to share data owned by Community Users, and came across a conclusion. Hence, I would appreciate if I can give a feedback on the same, and also how can ...
0
votes
0answers
13 views

Opportunity Sharing Rule creation option not available

In one of my org I changed the OWD for Opportunity from Public Read Only to Private. However, I can't see the option to create a new sharing rule for Opportunity. What could be the possible reason for ...
0
votes
0answers
17 views

How Customer Community Plus Login Licence User Can Delete Records of Other User Who have Same Profile and Licence

How Customer Community Plus Login Licence User Can Delete Records of Other user Who have Same Profile and Licence. Following are not Worked for me : On Profile Level their is No Option to Give ...
0
votes
1answer
29 views

Sharing rule vs Without sharing apex class

Need recommendation regarding sharing a custom object(Relationship) records to community users: We have a customer community accessible for community users(customer community license), the requirement ...
0
votes
1answer
28 views

Class with sharing get access just to records from the current user?

Need to update related records based in a field value from the parent record. If I use with sharing in class, just the records that the current user has access will be updated?
2
votes
1answer
19 views

Unable to see “StartsWith” on Criteria Based Sharing Rule on the UI, even though it is successfully deployed to the org

I have a situation in which I had to create a Criteria Based Sharing Rule with "StartsWith" for a field. However, the only option via the UI I see available as operator are Equals & Not ...
3
votes
1answer
48 views

How can I match ID and fullName of AccountShare?

Querying AccountShare When I query for an AccountShare, I get some interesting stuff, including an ID but no name, label or fullname : SELECT ID, RowCause, UserOrGroupId, AccountAccessLevel, ...
0
votes
1answer
27 views

How to Set Record Level Security for particular Records [closed]

How to set security setting if region equal north america then only that particular role can see and edit that opportunity not the other users roles. For Now If Region is "North America" ...
1
vote
0answers
110 views

Issue with Contact Sharing rule for Site Guest User

I create a public site with the following settings: Enable "Assign new records created by Salesforce Sites guest users to a default owner in the org". Set contact Internal/External Access ...
0
votes
1answer
150 views

Combine record owner based and criteria based rule types in sharing settings

I have a role hierarchy in my org. The hierarchy is : a. Sales Director a1. Direct Sales a1.1 SME Sales Coordinator a2. Indirect Sales Also, i have a partner user who creates Account records in ...
0
votes
1answer
23 views

How to give all Sales Reps read-only on all New Opportunities, but restrict them from changing Opp Owner

Sales Rep Users need the ability to see (Read only) all New Opportunities no matter what territory they are in, no matter who is the Owner. We set this up successfully by creating a Sharing rule where ...
0
votes
1answer
23 views

Unable to upload new attachments or view already uploaded attachment related to a record once the Owner is changed

Issue: I have a Custom Object Application__c and to the records of this object I am uploading attachments after logging in to our application. In this scenario it works fine. I am able to upload ...
0
votes
0answers
191 views

Field Service Lightning - Users with User territory records cannot view parent records if the parent records are owner by manager role

I have an issue where I've created user territory records for the users to view any records which are created in the territory however the users cannot see records when owner by user in higher role . ...
2
votes
1answer
96 views

Manual Sharing Rules Mysteriously Removed

We also have an issue where Salesforce Support hasn't been a lot of help. We have some Apex code that was developed by a Salesforce contractor. We have a custom object and we have Apex code making a ...
0
votes
0answers
14 views

Report to List All Users Affected By A Role & Subordinates Sharing Rule

What is the best way to generate a list of all Sharing Rules that are NOT currently impacting any Active Users? I need to do this in an environment that involves numerous sharing rules that use Role ...
1
vote
0answers
178 views

Account Territory Sharing Rule remediation in Enterprise Territory Management

Account Territory Sharing rule is no longer available to ETM, and as per salesforce the remediation should be like below: Original Territory Management (TM1) to Enterprise Territory Management (ETM/...
1
vote
0answers
205 views

When object's default Sharing Setting is “Controlled by Parent”, how can we identify the parent(s)?

How can we identify an SObject's parent(s) when the Sharing Setting is "Controlled by Parent"? Currently, in a new Developer Edition instance, there are six SObjects where the Organization-...
0
votes
0answers
146 views

Access to Contacts via Related Accounts in Communities

Consider the following scenario: Salesforce has multiple accounts for Contacts set up Contact A has access to Account 1 and 2 (1 is the primary account) Contact B has access to Account 2 and 1 (2 is ...
0
votes
2answers
142 views

Apex records sharing vs standard record sharing

I need to know what are the advantages of the Apex records sharing compared to the standard record sharing with sharing rules? When to use Apex records sharing over the standard record sharing?
0
votes
0answers
32 views

Hide Activities from other users

Is there a way to hide activities from some users if they have access to the respective account record. e.g : let say there are A1, A2, A3, A4, A5 activities on Account and there are two users U1 and ...
0
votes
1answer
24 views

Standard Criteria Sharing or Apex Sharing Needed?

I have child object that hangs off the standard Contact object. I am wanting to create a criteria-based sharing rule that uses 3 or 4 fields on the child object to determine if the Contact record ...
0
votes
2answers
21 views

Does adding all the roles in to a group and creating a sharing rule with read only with the same group make the owner permission read only?

I have around 20 roles in the same level, like this: (not showing the parents of a and b) | | a b (level x) | | ------ --------- | | | | | a1, a2 ...
0
votes
1answer
25 views

Custom object referencing Account when there is no access to Account

Suppose I have Account as Private OWD (Sharing model). I also have a My_Custom__c custom object that has a Lookup field to Account. Provided I know the Id of a valid Account that I do not have ...
0
votes
2answers
25 views

Get records as per role heirarchy

I have a requirement of getting accounts with respect to role heirarchy. For eg. Lets say there are 3 roles A,B,C. Now when A user logins i want to fetch all the records of A,B,C user, similarly if B ...
1
vote
2answers
69 views

Can Contacts see others Contacts that belong to a different Account?

As a Customer Community User from account A, I want to see contacts that belong to account B Is the above possible? I tried a Contact Sharing Rule without success and even a Manual Sharing (image ...
1
vote
1answer
32 views

Sharing rules not respected for related queries

I have set my Account to Private. I have Activity (Task) set to Private I have two users - Joe Schmoe and Karen Hoyts. I have created an account Joe's Account. Under that account, i create a task ...
1
vote
0answers
40 views

Automatic sharing rules for related objects

I have a custom object My_Object__c. This object has a lookup to Account and it's OWD is Private. I want to make it so whenever an Account Owner changes, they can get Read/Write access to ...
0
votes
0answers
41 views

Topics for Objects as a Guest User in Community

Problem: As a Guest User, I'm not able to list/read Topics for Objects in a Community. Some background: I created an apex method that fetches Topics: public with sharing class Topics { @...
0
votes
1answer
802 views

How to retrieve a list of sharing rules per object via SOQL?

I am looking for a quick way to retrieve all the sharing rules for Account and Opportunity object via SOQL. As per my research, I found two objects AccountShare and OpportunityShare, but this will ...
0
votes
1answer
187 views

Apex managed sharing limits?

I've implemented a User Managed Sharing Using Apex and need to know are there any limits for Apex User Managed Sharing for standard or for custom objects?
1
vote
0answers
65 views

How to use PersonMailingCountry in sharing rules?

I have a requirement where I need to create a sharing rule on person accounts based on the person mailing country field (part of PersonMailingAddress field). When I run a soql query I can find the ...
2
votes
0answers
146 views

Community - sharing rule/Guest profile

On Friday I implemented the Guest record level security in production. I added sharing rules. Everything looked great. This evening I needed to give the Guest user profile access to a custom field ...
3
votes
1answer
675 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....
1
vote
0answers
160 views

Do sharing rules have impact on Automated Process user?

Due to the critical updates that will impact guest users, I have to do a rework on some apex classes and triggers that assigns the ownership to the guest user. To overcome this problem, the new owner ...
1
vote
0answers
81 views

Need more than 50 Sharing Rules - now what?

The Requirement: Our organisation works in ~30 countries and has 6 groupings of workers ("Core Competencies") within each country. We have a number of Objects with OWD = Private and we need to ...
3
votes
2answers
347 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" ...
0
votes
0answers
104 views

is Sharing rules get recalcuated on deployment of Same OWD

I have one repository where i have OWD for account,contact and some other custom objects which is same as in salesforce org. Is Sharing rules getting recalculated if I deployed the same OWD. Please ...
0
votes
1answer
347 views

Can I Delete Sharing Record with Flow? Salesforce

I'm currently using flows to provide Read/Write access to records associated with a related object record using userIDs from two lookup fields. (similar to this method: https://salesforce....
2
votes
1answer
101 views

Is there a way to determine by Apex if `Grant Access Using Hierarchies` is turned on or off?

We have a requirement to display list of records available at territory selected. Since Grant Access Using Hierarchies can be turned on or off this can affect the records we need to display. We don't ...
0
votes
0answers
35 views

Access Granted Through Sharing Rules is Inconsistent - Keep Having to Recalculate

We're having a problem where we are continuously having to manually recalculate sharing rules in an org. Account OWD is set to Private. Sharing Rule 1: Account lookup field is populated by a certain ...
0
votes
1answer
171 views

Update OWD using metadata for custom objects

Requirement- I have many custom object whose OWD I need to change.Almost 50 managed package Objects are there which i need to consider .Is this possible to do it by metadata (package) or what is the ...
0
votes
0answers
27 views

SharingRule is not being shown as RowCause in OpportunityShare record

I have granted a User access to an Opportunity record through an Opportunity sharing rule. Now I can see in the UserRecordAccess Object that the User has access to this particular Opportunity record. ...
0
votes
1answer
300 views

Alternatives to RunAs for user context in test classes?

I need to run a test method in the context of a user because of a conditional default field being set based on parts of the users email address. The problem: I only need the users email address in ...
1
vote
1answer
111 views

Sharing Rule Calculations Missing Buttons

I am missing the buttons on the Share Calculations (suspend, resume, recalc). How do I get these visible on the page?