Questions tagged [sharing-rule]
Sharing Rules are used to make automatic exceptions to your organization-wide sharing settings for defined sets of users.
224
questions
0
votes
0
answers
21
views
do queue ownership based sharing rules evaluate queue members?
i'm simplifying sharing on an object by changing ownership to queues and adding sharing rules to groups to grant read access as required.
i ran into some doubts this morning bc of the language on the ...
0
votes
1
answer
38
views
Campaign Member Sharing Rules
I need to create a Sharing Rule that only allows Users to see Campaign Members where they are the record owner of the Contact or Lead that corresponds with the Campaign Member.
Sharing Rules don't ...
0
votes
0
answers
38
views
Issue deploying Sharing Rules via SFDX
I am trying to deploy metadata into a scratch org from source control. The deployment is succeeding without any errors, but only Account sharing rules are deployed. Sharing rules for custom objects ...
0
votes
0
answers
37
views
Users higher in the role is getting access to records owned by role below them when Grant Access Using Hierarchies is unchecked
I am testing on how the Grant access using hierarchies work.
Here is the setting I have as of now for testing -
Two users
User 1 -
Role - Director, Direct Sales
User 2 -
Role - Western Sales Team
As ...
0
votes
0
answers
60
views
Data Not Available You do not have Edit access to one of the two records you are trying to merge
I am getting following error while viewing record in salesforce. But same record is visible in related list of parent opportunity record and also I can even query this record with SOQL query using ...
0
votes
1
answer
62
views
Contract records access
Here is the sharing settings for account/contract:
Our experience users (community) have to access (read/write) the contract records under the account their contact is linked to but only those ones. ...
0
votes
0
answers
24
views
Retrieve Sharing rules via tooling api [duplicate]
so firstly I am not very clear about what the tooling api on workbench is/does (I guess basically retrieve information about metadata objects?), but I have been able utilize to help me greatly with ...
0
votes
0
answers
39
views
Is there a way to replicate the information return in the Sharing Hierarchy view using Apex?
I'm wondering if there is a reasonably simple way to using Apex to return the data shown for one particular user in the "Sharing Hierarchy" view?
Looking at individual users in the Sharing ...
0
votes
0
answers
403
views
Able to view the Account records even though OWD set to private and removed all permissions like view all & modify all
I have created the sharing rule to share ony specific record type record to shared with a group.
my object is Account and Org-Wide Defaults set to the Private, removed the permissions like view all &...
0
votes
0
answers
99
views
SOQL query on Email Template is not returning any results
I got a weird error while performing an operation from the Salesforce community. I was saving a record through portal and due to the same a record triggered flow was getting fired. That record ...
0
votes
0
answers
31
views
Simple Visibility Scenario - For Integration User
I have a simple visibility question
There is an special user who should only have access to Account records marked with flag true.
Rest of the users should have complete read write access to account ...
0
votes
0
answers
25
views
How to share objects with users in a many-to-many relationship - revisited 2023?
Is the answer to this 7 year old post How to share objects with users in a many-to-many relationship? still correct?
Do share any more recent links on this subject if you know of them.
0
votes
0
answers
8
views
How to give user inside specific role accessibility to all activity except from user with the same role
I need to give a user accessibility to all activity except activity that own by other user in the same role
What I want is user inside CFO role can see all activity except activity that own from ...
0
votes
1
answer
38
views
Package version creation results in field integrity exception (Case access level below organization default)
I am trying to create a package version.
My dev hub has the following for case:
Running a query under dev console gives me:
When I try to create a package version, I get :
Practice_Assignment_Team: ...
0
votes
1
answer
144
views
How to provide following access on object records NOT owned by the user (OWD is private): Edit access on some fields and read access on some fields
I have following scneario regarding an object
OWD is private
For record that are not owned by user, they should be able to have read access on some fields and write access on some fields.
I have ...
0
votes
0
answers
55
views
Are Account Relationship Data Sharing rules suitable in an org where customer can have 10,000 orders?
I'm currently investigating the best record access strategy in an org that is experiencing some performance issues.
The current design uses sharing rules and account relationship data sharing rules.
I'...
1
vote
0
answers
47
views
Access to the Account record after the conversion process in Apex
we have the following setup:
Private sharing model on the Account object
Sharing rule to share Account records with role and subordinates based on the Account record type field
The task
Update ...
0
votes
1
answer
351
views
Which field types are supported for salesforce sharing rule?
Which field types are supported for salesforce sharing rule?
Looks like certain field types are not supported in salesforce criteria-based sharing rule, like LongTextArea.
However, I cannot find in ...
0
votes
0
answers
189
views
Getting UNKNOWN_EXCEPTION while updating SharingCriteriaRule using Metadata API
I am trying to update the access of SharingRule using the Metadata API from APEX. I have created a MetadataService class using https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/...
0
votes
0
answers
448
views
The best way to share all records of an object using an ownership based sharing rule
To share all records of an object, I've always used sharing rules from public group - all internal users to group/role/etc
Just discovered that this approach does not share records owned by Queues.
I ...
0
votes
1
answer
210
views
Use Screenflow to change record type
Can someone help us with this issue?
We have two record types for the account object; Vendor and Resident. The sharing rule on the Account object is set to Public Read only. Now, a user with a custom ...
0
votes
1
answer
1k
views
Allow Profile the ability to edit any Task or Event on Account or Contact
I have a dilly of a pickle here.
We have users who have the profile: "US-Development".
Anyone with this profile should be able to edit any Task or Event on Account or Contact.
One of our ...
0
votes
0
answers
76
views
Sharing Record with partner users
Let me explain concept first.we have one concept called retail copy like when ever Power partner wants to access any person account which is created by standard users of salesforce.he should do retail ...
-1
votes
1
answer
398
views
How does Ownership in manual sharing a single record work?
I was asked a question: If A and B are two users and A manually shares a record he owns to User B and then he leaves the organization. Now a third User comes and gets the Ownership of the record in ...
0
votes
0
answers
257
views
How to create a Sharing using parent field value?
Account OWD is Private
Objects in question OWD is Private
Objects in question has lookup relationships to Account
Account Criteria-based Sharing Rule allows public group A to access Accounts that has ...
0
votes
0
answers
588
views
Previous owner can still see private records despite criteria based sharing rule
I have an issue where my criteria based sharing rule doesn't seem to be affecting record visibility. I've set OWD to the object as Private and users do not have View All permissions.
I then created a ...
0
votes
1
answer
2k
views
If Object A is Master and Object B is Detail. OWD for Object A is private. Can you show records of Object B to User X when X is not the system admin?
I know that for Custom Objects in Master Detail relationship, the OWD for child is 'Controlled by parent'. So here as OWD for Object A is private it means that even records of Object B (child) should ...
1
vote
0
answers
22
views
Sharing Rules on Activities [duplicate]
OWD as follows
A user in the role of 'Customer Support Agent' should be able to view Activities related to Accounts and Contacts they do not own.
Since Sharing Rule on Activities is not possible.
...
0
votes
1
answer
675
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
313
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 ...
0
votes
1
answer
249
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 ...
1
vote
0
answers
354
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 ...
0
votes
1
answer
997
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
318
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'....
0
votes
0
answers
239
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
1k
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
1
answer
205
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 ...
3
votes
1
answer
2k
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.
...
0
votes
1
answer
701
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, ...
0
votes
1
answer
683
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 ...
0
votes
0
answers
139
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
108
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
661
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
vote
1
answer
270
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
60
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 ...
2
votes
1
answer
291
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
466
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**...
0
votes
1
answer
353
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
645
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
614
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 ...