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
0 answers
13 views

Share child account data with parent account users in experience

We have a requirement to share child account data ( Contact, ChildObject1__c and ChildObject2__c) with parent account users. We tried sharing the records by using Account Relationships and it works ...
0 votes
1 answer
19 views

How to check in Apex if a user has sharings to a given record?

I have an ID of a user (let's say 'id_1111111111') and I have an ID ('id_2222222222') of a record of a custom object Job__c. How can I check in Apex / SOQL if the user with id 'id_1111111111' has ...
  • 9
0 votes
1 answer
36 views

Testing Sharing settings and record visibility in Apex - No Records found

Can you help me to see whether the below is actually possible in Apex? We're setting up Sharing Settings in our development Org and I want to have a quick way of knowing whether what we've built is ...
  • 125
2 votes
0 answers
53 views

Case Sharing Rule Not Working

I am creating a case by associating it with contact. OWD of Case: Private OWD of Account: Private OWD of Contact: Controlled by parent Case assignment will change the owner to a queue on case ...
  • 71
0 votes
0 answers
35 views

Share Internal User record with Partner users in Experience Cloud

I have the external sharing on User record set as Private. So, when I query the internal user record where Title field on User record is set as 'Lead' it returns empty results. I tried creating a ...
  • 4,591
0 votes
1 answer
62 views

User Can Transfer records which they don't own

I am facing one strange issue. Issue : Users are able to transfer account which is not owned by them Scenario : Account is Set to Public Read Only under OWD. Record access given to manager hierarchy ...
0 votes
0 answers
46 views

Restricting visibility to Contact records based on a field

I'm trying to lock down visibility to certain contacts in SFDC. We have a field on Contact that is populated by a Flow and it is one value that we care about. The field is called 'Record Type Account'....
  • 139
0 votes
0 answers
72 views

Create sharing rule with apex-mdapi. Issue - required field missing

I try to create sharing rule using apex-mdapi. There is suitable method in Examples class, anyway it gives me Variable does not exist: sharedFrom error. I added sharedFrom field to SharingCriteriaRule ...
0 votes
1 answer
150 views

Gave User Read Only Permission In Sharing Setting but Able to Edit Records when OWD is Private

I want a user to see all the records of Quote object of other users based on some criteria, I created a sharing rule on the opportunity to share records with that user and gave read-only permission ...
0 votes
0 answers
100 views

Share records that are accessible for Partner users with Internal users

I'm trying to share all the records that our partner users have access in the community with their respective Account Owner's internal users. Let's take the Account object as an example: My OWD for ...
0 votes
0 answers
19 views

Panels on customer community shows all data (discard collaboration)

I'm using three objects to create a Panel shown in a customer community site: Account, Contract and Hour__c. I could have many hour records associated with Contract. The problem is the following: when ...
  • 11
0 votes
0 answers
40 views

Sharing by criteria to owner of lookup record

Suppose we have a custom object My_Custom__c that is owned by a queue. Now that object has a child object My_Child__c in a Master-Detail relationship. Now there is another object My_Something__c that ...
  • 1,667
1 vote
1 answer
474 views

Sharing records with Customer Community Login users

I am struggling to get the concept of sharing rules vs sharing sets when it comes to sharing records owned by an internal user to a community user which has a license of Customer Community Login User. ...
  • 161
0 votes
1 answer
198 views

Sharing rule does not expand permissions for specified group members

I have a custom object called Banner that I'd like to allow portal users to view and portal administrators to create/edit all records. Currently the admin can create, edit, delete their own records, ...
  • 31
0 votes
1 answer
170 views

Role Hierarchy, Sharing Settings & Team Member puzzling issue

I have this Role Hierarchy (assume there is only 1 user in each role listed below) How I've set up all the accesses: OWD: Account and Contract -> Private for both Default Internal and External ...
  • 1,095
0 votes
0 answers
35 views

How do I restrict access to a specific type of record without turning off "Grant Access Using Hierarchies"

We wish to prevent access up through the Role Hierarchy, when a very specific scenario happens on a custom object. But we are using the Grant Access Using Hierarchies on this object and turning it off ...
0 votes
0 answers
38 views

Can we enable special Accounts to be shared with multiple roles/public groups?

We're looking to have Salesforce configured that each role represents a business unit (e.g. Colorado Offices). Some special accounts require that multiple business units own/manage the account. For ...
0 votes
0 answers
349 views

Site Guest User and Flows

I'm working with a Flow and Site guest user. I understand that there are some changes that came out that are preventing Site Guest Users(SGU) from accessing objects and flows in Winter 21'. The ...
  • 1,318
1 vote
1 answer
93 views

Will record data be visible via API if shared using sharing records with Guest User on Communities?

We are setting up a public Communities page. This page will publish a flow to capture leads but the flow must have read access to Account and another custom object to do its job. Communities requires ...
0 votes
1 answer
27 views

Need to Share record with Subordinate

I am using Salesforce community (Digital Experience). In which I have user and their manager. Now I want to share all records owned by manager to their subordinate. Is there any point and click way ...
  • 1
2 votes
1 answer
80 views

What's the difference between Sharing with Role and Internal Subordinates vs Sharing with Role + Grant Access Using Hierarchies for the object

I'm unclear on what Granting access using hierarchies gets me in a scenario. Suppose I have a private sharing model and on the Case object, I'm already Granting Access Using Hierarchies. Given the ...
1 vote
1 answer
170 views

ViewAllData or ViewAllRecords Required Error for Integration User

While trying to get case information using EmailMessage object using REST URL I am getting the below error: **message**: ViewAllData or ViewAllRecords required to upsert by standard field **errorCode**...
  • 13
0 votes
1 answer
83 views

Organisation Wide Default and Sharing Rule and Apex Sharing

If organisation wide default is read write and record is shared in read mode by sharing rule or by apex then which will be the final access to the user??
0 votes
0 answers
238 views

Profile does not have permission to Visualforce page but User able to access it

We have a bunch of Visualforce pages which are not supposed to viewed by some profile users. But they have access to the objects and field level access to all the objects involved in that VF page ...
0 votes
2 answers
245 views

Master Detail Relationship question

i have master-detail relationship between A&B object where A is master and B is child. Now when a record is created in object B by a user, it is visible by other user also. Is their any way to ...
2 votes
0 answers
52 views

Salesforce security issue - Account owner's role of community user is given access to accounts the community user is linked to via cases

We have a security requirement where certain accounts should only be visible to a certain public group. To enable this we have a checkbox on the account and set our OWD to private. Any account with ...
0 votes
1 answer
75 views

can Sharing rules provides access to forecast hierarchy

Role A Role A1 Role A2 Role A3 Role B Role B1 Role B2 Role C Role C1 I have sharing rule on Opportunity to share the records of A1,A2,A3,B1,B2 to C1. But in the forecast tab, For C1 , he ...
0 votes
2 answers
156 views

Sharing Rule Between Sales Cloud and Service Cloud users

Background I have 2 group of users having different roles and different profiles: Sales Cloud users can only Read/Write Leads, Accounts, Contacts, Opportunities and should be able to view Service ...
  • 1,095
0 votes
1 answer
94 views

Sharing rules restrictions read-only

Is it possible to prevent a user who has read-only acces to an object OWD Private creating child records with another owner of the parent record. I currently have a custom object where I can add child ...
  • 2,184
0 votes
1 answer
888 views

Sharing settings with criteria based assignment rules not working as expected

I have a situation where the user is able to create a case record of record type RecordTypeA using Salesforce flows as a system user. The requirements are The user shouldn't edit any of the fields of ...
  • 535
0 votes
1 answer
296 views

Restricting access to create Reports in Salesforce

We have three different sister companies within our salesforce org. Account and Contacts are readable for all users irrespective of Business units. However, I need to provide create and export report ...
-1 votes
1 answer
598 views

Ownership and criteria based sharing rule

So I was going through some questions on sharing rules and found this one Not sure what the concept should be. **Can a single sharing rule be written to have both ownership and criteria based ...
-1 votes
1 answer
94 views

Without using sharing rules how can i share records to another user? [closed]

Without using sharing rules how can i share records to another user?
-1 votes
2 answers
279 views

how to control the visibility of records in inherited sharing

we have order and order product access community portal, we need to restrict orders to be visible with filtering it with certain fields and same for order products. Order and order products are ...
  • 2,264
0 votes
1 answer
956 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
2 answers
552 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 ...
's user avatar
0 votes
1 answer
250 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 ...
  • 71
1 vote
2 answers
52 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 ...
  • 19
0 votes
0 answers
222 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
1 answer
627 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
1 answer
203 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
1 answer
101 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
1 answer
74 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
1 answer
65 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" ...
  • 63
1 vote
0 answers
592 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 ...
  • 11
0 votes
1 answer
639 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
1 answer
64 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
1 answer
100 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 ...
  • 133
3 votes
1 answer
767 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 ...
  • 55
1 vote
0 answers
458 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/...