Sharing enables record-level access control for all custom objects, as well as many standard objects.

learn more… | top users | synonyms

1
vote
1answer
23 views

Access “Anyone with link” properties (and link) using REST API

I have an attachment with "Anyone with link" sharing configuration. How can I retrieve (or construct) the actual sharing URL using the rest API? E.g., I have an attachment with id: 069240000009bdU ...
0
votes
1answer
15 views

Data Access restrictions to Salesforce objects via Apex Web Service

I'm going through this article : https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_web_services_methods_exposing.htm Have few questions regarding access to field/objects/record by ...
0
votes
0answers
10 views

Sharing Task with Public Group

I have a Public Group of users called IT Admins. On a specific scenario, a Task will be assigned to any one user belonging to this group. I want the entire group to be able to edit this Task. I will ...
0
votes
1answer
17 views

Can not create sharing rule on sandbox [closed]

I have a sandbox and production environment set up. Sandbox is develop type. There is a sharing rule on one of the objects (Survey__c) on Production. I took refresh of sandbox and now I am trying to ...
1
vote
2answers
31 views

I need to check every owner of an object involved in a trigger permissions

I have an object called Albaran__c, (it's set on private sharing mode). I have a trigger that shares every record involved on the trigger with the owner of the Account we do reference on the field ...
0
votes
0answers
26 views

insufficient privilege on changing opportunity owner despite sharing rule

Hi i have our OWD setup for Opportunity object = Private then we have this sharing rule: Owner in Role: Sales Manager shared with owner in Role:Sales Rep (Read/Write) now our Sales Manager created ...
0
votes
0answers
23 views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY when setting custom field on a Task

I have a managed package with post-install script that executes a batch job to initialize a custom field on the Task object that is defined by package. It has worked fine for me in the developer ...
0
votes
0answers
10 views

Fetch “Grant Access Using Hierarchies” via SOAP/METADATA API

How can I get “Grant Access Using Hierarchies” of Organization-Wide Defaults in Salesforce Sharing Settings. I stumbled upon this answer and Org-Wide Defaults is no longer in the unsupported list. ...
4
votes
1answer
45 views

Use runAs to unit test class without 'with sharing' keyword

There is class without 'with sharing' to ignore sharing and delete sobject in system context. I am writing unit test to verify the behavior that execution of this code will definitely delete this ...
0
votes
1answer
25 views

Mixed Sharing Model

I have a challenge that I can't solve. We have 2 custom objects; Providers and Prescriptions. There is a master-detail relationship between them. Our users are granted access to individual providers ...
1
vote
1answer
48 views

Portal users cannot run User object reports - insufficient privileges

I have a Customer Community Plus site with portal users using Customer Portal licenses. I want the portal users to run User object reports so they can see last login, etc. Portal users are still ...
1
vote
2answers
28 views

Contact Deletion - Insufficient access

Our org settings for Account and Contact is Public Read/Write. We have a user with custom profile. That profile additionally has View All on Contact and Account (but Modify All is not selected). ...
0
votes
1answer
12 views

how to hide a record in hierarchy model salesforce

I have a hierarchy model where 1 manager with 2 leads officer (A, B) and 2 sales person under each lead officer. Now my client need to hide records of A lead officer from manager. How can it be ...
1
vote
1answer
30 views

Access OWD (internal and external) in Apex?

Is it possible to get the Internal OWD and External OWD of custom objects in Apex? Is there any API or object from which it can be retrieved?
1
vote
2answers
22 views

How can I add a role and use apex managed sharing all at once?

Question is in the title. For context, when a certain record is added, we would like to create a role (named after that record) and share it with that newly created role. Because of that, the flow ...
0
votes
0answers
20 views

STRANGE!!! Not able to create new opportunity record from UI and class

getting error while creating record from UI in salesforce.. Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of ...
0
votes
1answer
31 views

Can sharing rules be based on opportunity roles

We are looking for a way to create role based sharing based on opportunity roles. We have a use case that if we try to use manual sharing, even with apex triggers to automate the manual aspect, we ...
0
votes
2answers
23 views

Read-only sharing rule is not restricting editing from inline-editing, whereas from API it is getting restricted

I have 2 user groups K1 and NK1. NK1 are managers of K1.Custom object A_S has OWD private, with grant access. There is a sharing rule to give read-only access to K1 users of NK1 user's records. It ...
0
votes
1answer
38 views

Selectively Deleting sharing rules

Hi guys I am trying to delete sharing rules on a custom object (say myCustOb__cj) based on if the user is a portal/community user or an internal user. If the user is a portal user then delete the ...
0
votes
0answers
14 views

Sharing Case Information within Partner Organizations

Does anyone know of a way to override the standard sharing roles for Portal Users (read/write to Account, read to Opportunity, and private to Cases) for all Accounts? I found a way to do this through ...
0
votes
1answer
26 views

Record visibility restriction to User irrespective of Ownership

I have an Object structure like Parent - Child relationship. Where in i just need to display records where logged-in user is lookup in Parent record. Leave Balance is Parent Object and Leave Request ...
1
vote
1answer
115 views

Remove Edit Delete Link from Standard Related Lists/Views

We have a manage package, We want all the custom objects to be in read only mode for all the user including System Admin, i.e Neither user should be able to edit/delete the records nor view ...
1
vote
1answer
64 views

How to share Contact Record without linking Account Record

I have few Contact Record and I want to share it with other Groups. I have set the Contact Sharing rule and also set the Object level access for the profile. Thing is, I am able to share Contact ...
1
vote
3answers
49 views

Updating Record access Level

On Account object - OWD as Private I have a requirement consist of Two roles as 1. Process Owner - Creator of accounts 2. Manager Team - Verification team having access to those accounts We have ...
0
votes
1answer
45 views

Apex SOQL doesn't honor 'with sharing' for Pricebook2

My org is running some apex code that pulls objects and passes them to a mobile app. The apex code in question is designed to be run as the sales rep that is logged in via the app. For some reason ...
0
votes
0answers
22 views

Chatter File appearing in sysadmin UI even though marked as private in Personal Library

One of our apps uploads files that get stored in Chatter Files, (ContentVersion). Fields get set to Origin 'H' and PublishStatus 'R'. According to docs: Origin of 'H' - meaning "This is a Chatter ...
0
votes
0answers
37 views

Sharing Rules Limits Questions

Question 1 - Can the number of sharing rules per object be increased? ​As per the limits guide: 300 sharing rules per object 50 criteria sharing rules per object Question 2 - what's is the limit on ...
1
vote
1answer
28 views

Ownership of custom object record is not allowing user to view related account

We'd like users who own records for a custom object (Projects) to be able to click from the Project record to view the related account. This works perfectly in opportunities, so I'm wondering why it ...
2
votes
1answer
47 views

Testing Communities Before Publishing

What is the best way to test your Community before publishing? I want to see if Field-Level Security and Sharing Sets are working correctly for the Community User role. For example, my profile has ...
1
vote
2answers
49 views

Will Sharing a Account also share its contacts?

My org wide setting for Account is private and for contact is controlled by parent. Also, there is a account sharing rule in place which gives Read/Write access for accounts to users of specific ...
1
vote
1answer
20 views

Share Account Records

Here i have so many records are there at account level and also i have created so many users. Now here i want to share one specific account's record to specific user means only this user can see that ...
1
vote
1answer
51 views

Criteria-Based Sharing

There seems to be a discrepancy in the documentation for Criteria-Based Sharing Rules. The Guide to Sharing Architecture (and other sources) states that: "Only Manual Share Records can be created on ...
2
votes
1answer
28 views

Access to a set of records to a user

I have to create a permission set for a user, where only when the Lead source is web, he/she should be able to view and edit that set of records. Is this achievable by using permission set?
2
votes
2answers
36 views

How can I assign a sharing rule to a specific user only

How can I assign a sharing rule to a specific user only. Bec when I click on sharing rule of a lead object I can view that select the users to be shared I only want to assign to a single user ...
4
votes
1answer
48 views

Generic account owner considerations - record skew - customer portal accounts?

In our organization, accounts aren't owned, and teams are used to manage sharing of accounts. We're planning on having all accounts owned by a single generic user. According to the architect resources ...
0
votes
1answer
38 views

Contact's child records transfer

I have few custom child objects (lookup relationship) of Contact. My requirement is if I change the Contact owner from User A to User B, I want the child records of that Contact to be transferred to ...
1
vote
2answers
113 views

How can I allow profiles to transfer accounts but not cases?

I have to requirement that a subset of the Sales Users be able to change the ownership of Accounts even if they are not the Owner, but not be able to transfer ownership of Cases, unless they are the ...
1
vote
1answer
129 views

Error : Insert Failed :INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, Sharing Rule Trigger

I have created one Trigger to give access to particular Accounts of my "Special" custom object records, Here BBB : Is custom object having lookup of both Account and Special E.g. BBBRecord = ( ...
2
votes
1answer
55 views

I created a custom object, and fellow admins cannot see my data

I'm part of the System Administrator role/profile. I created a custom object and added some data to it. Other system admins created data as well. When creating the object, we assign ourselves as the ...
3
votes
1answer
74 views

How can I find all users with whom my custom object is shared?

I have a custom Salesforce Object whose records can be shared via a combination of sharing rules and manual sharing. I would like to create a List of User sObjects with access to the record. The ...
7
votes
3answers
367 views

Making a public read/write record private

Disclaimer! I have searched for a result to this question on the web with no success therefore I need someone with expertise to review it and provide an answer. I use a public read/write OWD model on ...
2
votes
1answer
37 views

Generate report for Account User access?

How to generate a report for all User having what access to all account records. For this we tried of using UserRecordAccess. But for UserRecordAccess UserId is must and SQOL limit is 200. How we ...
1
vote
0answers
54 views

Role based sharing: All Components in Salesforce and what is the best way to make existing changes

Not sure what is the best way to ask this question I am listing down all the places (configuration only) components where force.com platform provides option to share/assign based on Role, Role and ...
2
votes
1answer
79 views

Is ListView visibility for Roles shared accordingly to Hierarchy?

I've made a custom list view and restricted its visibility by role, what happen is that the list view is visible for the specified role and all its upper parents in the roles' tree . Is it a standard ...
1
vote
1answer
53 views

How to properly use “Manager Groups”

I've just had the "Manager Groups" option enabled by SFDC. I am now trying to build an "Appraisal" object so that the records in it are only viewable by the record owner and anyone directly in that ...
1
vote
2answers
874 views

Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field

I am trying to deploy an update to a custom object. The object and classes associated with it work perfectly in my sandbox, but when I try to deploy, I get the following error: Cannot set ...
1
vote
0answers
119 views

Can't access merge fields in email template

We have a custom object XYZ whose OWD is set to private. In our salesforce community we have an apex class declared with the without sharing keyword as a result we are able to access records owned by ...
1
vote
2answers
53 views

custom extension has without sharing annotation but still runs in user mode

I have created a custom controller that extends a standard controller. My custom extension is defined 'without sharing'. Nevertheless, it seems to execute 'with sharing'. I get the feeling that an ...
0
votes
1answer
62 views

Auto-accept shared child records with Salesforce to Salesforce does not work

I'm trying to share child records (in a master-detail relation of a custom object) to an external org via Salesforce 2 salesforce. So I've set up the connection, published the object on the source ...
1
vote
1answer
51 views

User access level

I want to create 2 users in SF who should not be able to see each other's records. These 2 users should be of same role. How can this be achieved?