Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [sharing-rule]

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

0
votes
1answer
124 views

Why Apex Sharing [closed]

I am getting confused when we need apex sharing. Sales-force has Sharing rules(criteria,owner-based,manual),so what is the use of Apex sharing. Somebody please provide usecase/example when we need ...
0
votes
0answers
233 views

Update failed: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id

I have three test classes in my org which are not executing. For those three classes I'm facing same error. After analyzed three classes I'm having same problem with account. When i comment the ...
5
votes
1answer
5k views

Custom Report not showing records visible to users

I understand the following: Custom Report Types must use the Role Hierarchy Reports using Role Hierarchy show all records below the current Role Sharing Rules allow records to be shared with roles ...
0
votes
2answers
89 views

manual sharing doesn't work

i try to share a record with manual sharing "sharing button" and give to another user the access level :"Read/Write" . the problem is: this user can just view a record but can't edit . for ...
1
vote
1answer
65 views

Question on Security setup Accounts/Opportunities. Users read access to Account prevent from creating Opportuntiies?

I thought I had a pretty good handle on security in SF. Have received a requirement that I can't seem to meet with no code. Basically OWD - Accounts, Contacts and Opportunities are all Private. ...
0
votes
1answer
1k views

Edit Permission on Field with Particular Record Type for Selected Users

Want to do : Give Edit permissions for "Field1__c" on only Record Type = "Record_Type1" for Standard object to particular users (u1, u2,u3) only. All other users will Read Only for that field on ...
0
votes
1answer
106 views

Delegated Administration and record level access

We have OWD Set to private for most of the objects. We have separate departments set up as top level roles in our role hierarchy. We share data within department using sharing rules. Separate ...
2
votes
1answer
112 views

When to use Groups and when Roles

We are building a solution using service cloud console which will be used by multiple customers. One org will have data in various objects like accounts, contacts, cases and some custom objects for ...
1
vote
2answers
125 views

Cannot query all Tasks with different onwerID

I need to delete all tasks (Activity object) with a Set ownerId. I noticed that when I write query on Developer Console for getting task records and I can get 10 records, but when I write query on ...
1
vote
0answers
52 views

How to share Case record to owner's manager using Manager Groups

I have this situation: In Sharing Settings, Default Internal Access of Case object is set to "Private". Roles are configured and is working fine. Users in upper roles are able to see records owned by ...
0
votes
1answer
40 views

Contact Access to user

I want to give contact edit permission(without giving delete permission) to user when the organization-wide default for contacts is Controlled by Parent. Any idea how to achieve this? Thanks in ...
0
votes
1answer
3k views

Sharing Rule - Roles and Internal Subordinates

On Lead object: I would like to understand how Sharing rule works in my case. The following is my role hierarchy World Wide Sales -> Inside Sales WW -> BDR. If I create a sharing rule owner in Role,...
1
vote
1answer
34 views

Control on fields restrict in detail page

Is there any wayout to restrict profiles to edit fields from detail page other than FLS and Page layout? I don't want to have a separate page layout for above case. Also can't change by FLS because ...
13
votes
1answer
5k views

How to deploy more than one sharing rule in one deployment?

If I keep two criteria based sharing rules in Account.sharingRules XML file, there is a deployment error in start line of the the second rule: sharing operation already in progress. How do we deploy ...
7
votes
4answers
2k views

Cannot view Activity history

I have an activity in the Account history that was created by one user (user A) but is not visible by user B. Both Users are have the same profile and are part of the same User Group. The Account ...
1
vote
1answer
138 views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY in Many to Many

I have Accounts and Contacts as M:M in the system and a simple apex code that creates junction objects. @RemoteAction global static Boolean addContacts(String[] arr, String acc_id){ if(...
1
vote
0answers
14 views

Visibility as per Backward Ownership of Records of Custom Object

In custom object, I need to create a sharing rule such that it will be visible to owner1 if he creates a record and then if the records gets assigned to some other queue, then it will be visible to ...
0
votes
0answers
73 views

User Access to Accounts and Opportunities/ Sharing Rule on Formula field work around

I have a picklist field(Team__c) at User level with different Team Names in it, which is pulled on to Accounts and Opportunities using a formula field. So now I need to give access to a user to edit ...
0
votes
1answer
796 views

profiles vs sharing rules

If user's Profile has Read only access on Contact and OWDs(Org Wide Defaults) for Contact is Public Read only and there is a sharing rule which gives read write access to all contacts to that User's ...
1
vote
1answer
230 views

How can I share certain records of a custom object with my community's guest users?

I am using a criteria-based sharing rule to share my custom object with internal users and registered users of my Community. I would now like to add a rule to share with guest users of the Community. ...
2
votes
1answer
468 views

Issue with creating Sharing rule using Spring'15 Metadata API version 33.0

Has anyone tried creating Sharing rule using Spring'15 Metadata API version 33.0? I want to create an owner based sharing rule using metadata and below is the code snippet method which is calling "...
1
vote
1answer
54 views

Salesforce owner and different sharing options for integration scenarios

If we have an account from SAP system, this account don't have an owner, then we insert this account into salesforce the owner will be the default owner(current operation user). In the next day, maybe ...