Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

2
votes
1answer
29 views

How to Activity Access Levels work in SF. When you set “Controlled by Parent” to Activities

I have imported 2 organizations(Account(type- abc, xyz) & events) data into one production organization.And created two users (salesforce platform license) called A, B and set the OWD is priavte ...
2
votes
1answer
22 views

How to give the access to show all calendar events in admin user side in salesforce?

I created calendar event through admin side, It will be showing standard calendar events. Now I created another event through User A, He is standard user profile. But my doubt is User A already ...
-2
votes
0answers
15 views

i want to show all users Events information display in Admin calendar

i create a event in salesforce calendar screen, Here each user having some calls, but i need to all calls(Events) display in Admin Calendar.. How to give access for show all Users Events information ...
0
votes
2answers
22 views

Sharing rules to meet the certain criteria

In Account Object, I have created a field salesperson and it has a lookup relation with the user object. If the user is selected as the salesperson for a record, that user able to see those records, ...
2
votes
1answer
29 views

How to Hide Calendar/Activity Details by user wise?

I have imported A,B,C,D User Event details in Admin User. those all user events are Showing in admin calendar view. like below Image. How can i see particular users details in separate tab like ...
-2
votes
1answer
22 views

Sharing Rule to share custom Obj [closed]

I haven't worked on Sharing Rule Before can anyone please help me. I want to share 'Story' custom Object. When Share checkbox is checked, share Story record with Role and Hierarchy - Exec Director ...
0
votes
1answer
21 views

Sharing button in Salesforce Platform licence custom objects

I am created one custom object name is Test. after i have imported 50 records data to Test object. here i have two users system administrator and salesforce platform user. my requirement is need to ...
0
votes
0answers
26 views

Sharing settings are not working as expected

OWD is set to Private and Grant Role Hierarchy is enabled. Sharing Settings is created for a custom object to give Read Only permission for that object to a Group based on some conditions. But ...
1
vote
1answer
23 views

Contacts visibility to site guest user

My site guest user needs access for all the contacts in the instance. Right now site guest users can access contacts created by guest user. They are not able to access contacts created by Salesforce ...
0
votes
0answers
34 views

Override Standard “Insufficient Access rights” Message with custom error

I'm trying to override the standard "* insufficient access rights on object id" error message for users who do not have "write" access to records. I'd like to change the message for better UI ...
2
votes
1answer
34 views

Changing Lead Ownership for Siblings in Role Hierarchy

I have 2 roles in my org: A & B. They users assigned to the role A have permissions to 'Create/View/Edit the Lead object as well as permission to 'Transfer Leads' and 'Transfer Records'. A and B ...
1
vote
1answer
29 views

best practices around Account sharing?

this question might sound silly but it's around best practices and performance and security.. What is the best way to sharing account Internal Sharing... 1. OWD -- Public or 2. OWD - private ...
0
votes
1answer
25 views

Can records (such as accounts, contacts, and opportunities) be shared with Partner Community users?

A client wants to explicitly share private data with Partner Community users. For example, their Salesforce administrator needs to share Account A with Partner User A, but Partner User B should not ...
1
vote
1answer
26 views

Give access to Roles and Subordinates for already exsisting cases

I have Case and its Child Transaction-1 and Transaction-2. Transaction-1 and Transaction-2 has lookup relationship to Case. Case, Transaction-1 and Transaction-2 OWD is Private. In Prod box, I have ...
0
votes
1answer
25 views

Need to restrict Data for certain profile

Is there any way to restrict data with a record type on Leads Object: Lead Record Type: Bank Profile: Sales I had created a sharing setting on Lead and added other record types excluding bank, but ...
0
votes
2answers
78 views

system.security.NoAccessException even if controller APEX class is of type without sharing

I have a visual force page with standard controller (of type standard object) and controller extension. controller extension for page is of type without sharing. On this page, I am binding fields ...
0
votes
0answers
42 views

Case OWD is set to private and yet other profiles can edit records

I have a problem, it's driving me crazy. The Case OWD is set to private (so only the owner and the those who are superior in hierarchy can view/edit it). yet, other profiles (who have: edit,create,...
0
votes
1answer
41 views

Restrict Search result by record type.

I want to be able to restrict search result of an object by assigned record type. for example XYZ profile should only be able to see records from XYZ1 record type and ABC profile should only be able ...
0
votes
0answers
9 views

Error: Action $Action.Opportunity.Share is not valid for this organization (in function URLFOR) [duplicate]

While saving the vf page <apex:page StandardController="opportunity"> <apex:form> <apex:commandButton action=">{!URLFOR($Action.Opportunity.Share,Opportunity.Id)}" value="...
0
votes
1answer
18 views

Adding a custom button and sharing records

I am having a problem implementing a requirement. I have an object called Credentials and this credential object have two fields name and password. Now, the requirement is, a user called Manager ...
0
votes
1answer
97 views

how to share a record to particular user

there is a lookup field with User object UserLookup__c : when the field is not empty , share that particular record to selected user in the lookup field. how can we achieve this 1. I think we can ...
0
votes
0answers
52 views

Can criteria based sharing rules give permissions for records owned by “Process Automated”

The default owner of records created through triggers that subscribe to platform events is "Process Automated". If you choose to leave the owner as "Process Automated", is it possible to use criteria ...
0
votes
1answer
40 views

Display users related to territory on Account

I have 2 standard objects, Accounts and Users and the Territory object. Accounts and Users have a lookup to the Territory. I need to display the user only accounts from his territory. How correctly to ...
0
votes
1answer
36 views

When Roles & Subordinates category will be visible in Public group

Based on Salesforce documents Roles and Subordinates category contains partner portal and Customer Portal roles that contain users with a portal license type. But in my org, once the community is ...
1
vote
2answers
180 views

Setting View All Access for Customer Community Plus User

My org has External Sharing Model enabled. It has Custom object with Default External Access set to Private. Now I need that custom object to be shared with (read access) all users in specific ...
0
votes
0answers
22 views

Salesforce Role Hierarchy On The Basis Of Zone

I have many account records and each account have field 'Zone' filled with North,South, East, West and central.I have 5 users. Requirement:- I want to make north user to read/write/edit all account ...
0
votes
1answer
86 views

How do I share a User's records with its subordinates?

I have a use case where the default sharing for an Object is set to "Private". When a user creates a new record, however, they want their subordinates to be able to work with it as well. It's a ...
3
votes
1answer
78 views

How can we maintain access to the creator a Case at all times, even when its owner has been changed to Queue

I had written a Workflow rule based on which a case gets auto-assigned to a "Customer Service Representative" queue. Now the problem is that as soon as the case is created, the creator gets ...
0
votes
1answer
26 views

share record depend upon field value

I have one custom object, in that one field named as 'status' - pick list value. my requirement is - when the status field goes to 'assigned',all profiles in org can able to see the record.if the pick ...
2
votes
2answers
433 views

Sharing rules not working on Partner Community Users

I have partner community enabled. I want to display Account, Contact and Opportunity records to the Community users only if they fulfill particular criteria. What I've already done is as follows : ...
0
votes
0answers
67 views

Impact of validation of package.xml having Sharing Rule

I am planning to deploy few sharing rules on Account, Contact object from UAT to PROD through package.xml. Before actual deployment, I would like to just validate the package against production ...
0
votes
2answers
22 views

Edit access - 2 profiles

I have 2 profiles A and B. Both have same access on Account object and have same permission sets. profile A cannot edit the account but profile B can. What could be causing this? anything I am missing ...
2
votes
1answer
105 views

Use APEX to give users Sharing Access to a custom object

I'm trying to find out how to programmatically create a Sharing Access Rule for a custom object when an event occurs. For example, I have a Community active with some Portal users. Whenever one of ...
0
votes
0answers
28 views

Sharing rule for report content

I want to show a report to external community user. I created a report in SF admin side and then exposed it on the community portal. But the report shows all the records. I only want the external ...
1
vote
2answers
144 views

Does ownership based sharing rule also shares records of users' subordinates?

Sales Manager A has subordinates A1, A2. Sales Manager B has subordinates B1, B2. Using ownership based sharing rule, records owned by A are shard with B. Does it also share records owned by A1 and ...
-1
votes
1answer
122 views

Deferred Sharing mode?

What is deferred sharing mode in salesforce ? will the sharing rules work when the deferred sharing mode is on ? I observe that the sharing rules don't work when the deferred sharing mode is on and ...
0
votes
1answer
607 views

Restrict record access based on record type

We have requirement : For Operations profile -- we want them to not see any Opportunity Record Type = Grant; or Opportunity Record Type = Report. So regarding that requirement we have did ...
1
vote
2answers
124 views

Efficient way to set up roles and hierarchies using APEX [closed]

I have this complex sharing structure where I have multiple levels of users and want to be able to dynamically assign/update sharing to records for different users. For example, let's say I have 20 ...
1
vote
1answer
37 views

Record sharing model

Whats the best way to do this.... I have ManagerA who is owner of all accounts... ManagerA would like to share some of his accounts with RepB and some accounts with RepC. RepB and RepC should NOT ...
4
votes
1answer
49 views

How to - Allow only one set of people to view certain type of Cases

I have a scenario: Lets say there are 2 groups of users in the same profile ( Group A And group B). And there are 2 types of Cases - A and B(other Cases). What I want : There is no restriction ...
3
votes
1answer
87 views

Community Sharing and Visibility

I am working on a very basic community use case and need some guidance for sharing setup. Share Cases with Contacts within the same Account, what's the best option to achieve the sharing? Setup ...
6
votes
2answers
540 views

The cause of UNABLE_TO_LOCK_ROW error?

My scenario is as followed, I have a single Parent account with about 600 child accounts. Every child account has a single Opportunity with 2 or more lines. I have a monthly batch job to create ...
0
votes
2answers
185 views

How does getSObjectType().getDescribe() work in a 'Without Sharing' Class?

I recently run into a problem when I try to check fls within an without sharing class. Here is what I did: For the user profile I set CustomObject__c allow delete permission to "False" public ...
0
votes
0answers
653 views

Sharing Rules for Activities

Why can't I set sharing rules for Activities. I am trying to enforce a rule that only a certain role (or profile if thats what I have to do) can view an activity. For example I want any activity ...
0
votes
1answer
316 views

Criteria-Based Sharing Rules Limited To 50 [Per Object]

For those familiar with the subject, how would you go about circumventing the limit of 50 criteria-based Sharing rules? Is there an Apex-based solution for critera-based Sharing? Is there some OTHER ...
0
votes
1answer
37 views

Sharing Rules - Markers On User Record To Control Visibility

Apparently I've made a long time assumption about Sharing Rules that may not be true. Sharing Rules Based On User-Record Markers If I have a Checkbox on the User record called "Allowed To See XYZ", ...
11
votes
1answer
1k views

Role-based sharing rules for partner community users

When dealing with role-based record sharing in a Private sharing model, I often run into a scenario where managers should see their peers' records while their subordinates should not. It's simple ...
1
vote
1answer
43 views

Lead sharing rule

Lead - users at the same role level need access to each others Leads I have users at the same level in the role hierarchy that need to read/write each others Leads. How do I set this up in the ...
1
vote
0answers
49 views

Unable to create sharing rules on custom object

I am unable to create sharing rule for any custom object on my app. I have checked the following: The user has system administrator privileges The app has sharing option checked The object is not a ...
0
votes
1answer
338 views

Creating sharing rules through apex not manual sharing

Is it feasible to create sharing rules through apex , not manual sharing of records? Can someone please let me know if that can be done?