Questions tagged [sharing-rule]
Sharing Rules are used to make automatic exceptions to your organization-wide sharing settings for defined sets of users.
230
questions
0
votes
0
answers
17
views
Can't access financial goals object in Financial Cloud (FSC) using apex
I am trying to access financial goal object from my financial cloud using apex command as follows:
Map<String, Schema.SObjectType> allSObjects = Schema.getGlobalDescribe();
for (String ...
0
votes
1
answer
19
views
I would like to share sharing permissions for the list view function by profile
I want to set sharing permissions for the list view function for each profile.
Is there a way to disable certain “A” profile user groups from using the “all users can see this view” feature and only ...
0
votes
1
answer
29
views
How to overcome the error `Specify a guest user’s nickname for the guestUser field`?
We are trying to put Sharing Rule into unlocked package to share access to the Knowledge records using Sharing Rules and we receive the following error:
Details: Knowledge__kav....
0
votes
0
answers
18
views
Enabled Create Quotes Without a Related Opportunity but don't have permissions
I enabled 'Create Quotes Without a Related Opportunity' within our org. I then went to follow this Salesforce Help Article and create a sharing rule for Quote. However, I am still getting the message ...
0
votes
0
answers
36
views
Experience Cloud Parent-Child Permissions
I have a parent object, called Tracker. There are many child objects for this parent object, one of them is called GPA.
In our Contact object, we have a Most Recent Role field; there are two options ...
0
votes
0
answers
29
views
OWD and Profile Security Settings
I am facing an issue.
2 Custom objects Job(master) and Candidate (child).
Job - parent (OWD private) (Custom Profile permission - Read permission only)
Candidate - Child (OWD Controlled by parent) (...
0
votes
0
answers
27
views
Orchestration Work Item Sharing Rule Metadata
I am currently trying to deploy a sharing rule for the Orchestration Work Item via a CI/CD process, but cannot for hte life of me figure out how to get this via metadata. I assumed I could create a ...
0
votes
0
answers
56
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
100
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
129
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
46
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
103
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
143
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
25
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
44
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
910
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
206
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
38
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
27
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
47
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
258
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
80
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
73
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
513
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
232
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
666
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
264
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
2k
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
90
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
534
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
346
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
793
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
825
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
484
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
343
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
401
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
1k
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
423
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
274
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
2k
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
253
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
3k
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
805
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
800
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
194
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
141
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
711
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 ...