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

learn more… | top users | synonyms

0
votes
1answer
18 views

Record ownership…dilemma

Suppose user A transfers his Records User B .Will user A still retain owership after transferring? How can user A revoke access of Record from User B
0
votes
1answer
15 views

Grant document folder access for a Profile

I would like to give all users with a certain profile access to a Document Folder I have created. However, when I edit the folder, I am only able to grant access to Roles or Public Groups, I am not ...
0
votes
0answers
12 views

Is this constant declaration “managed package safe”

I have a use case where I need to use an apex sharing rule to open a record up to the public. Wondering if the following constant declaration is guaranteed to work in every org (aka does every org ...
0
votes
1answer
24 views

How to share objects with users in a many-to-many relationship?

I have a user to object many-to-many relationship and would like to give users read access to all objects that they are related to. In my data model there are three objects: User, Junction, and Foo. ...
1
vote
2answers
38 views

Salesforce Class/Method “with sharing” documentation clarification

I'm going to take the dev 501 exam in a couple of weeks but I'm having trouble understanding something that I am seeing in videos Apex -> Introduction to Apex slides. In the Class Syntax: Sharing ...
2
votes
1answer
26 views

Restrict access to sibling records (in community)

I have a sharing/permission issue I cannot work out simply. My structure is a top-level object called "Project", which has a Master-Detail (because we need roll-ups) to a child called "Assignment" ...
1
vote
0answers
42 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 ...
1
vote
1answer
32 views

Couldn't see the “Sharing Sets” section in the Community --> Settings

We are configuring a new org (enterprise edition). I need to create a Sharing set for our Customer Community Plus Login users to access the records. I couldn't find the SHARING SETS section in Build | ...
4
votes
1answer
36 views

How to find out the owner of a record where the object has two master detail relationships

I have a custom object which has two master detail relationships. One to Opportunity and one to another custom object. It is on the detail side. I'm trying to determine which parent object will ...
0
votes
1answer
18 views

Hide other users visibility

I would like to know if it is possible to hide the visibility of all users to a specific profile. In particular, our need is to list only a certain type of users in the calendar multi-users view and ...
0
votes
1answer
43 views

Insufficient privileges for sharing projects

I have a button to share projects but if the user isn't a sysadmin, neither ownerid, neither has the 'ModifyAllRecords' permissions, system shows an error message Insert failed. First exception ...
1
vote
0answers
44 views

Sharing Records owned by community users

In my system i have requirement where i need to share records of particular object with different roles in round robin fashion. I am doing this with the help of trigger. Now the problem i am facing is ...
1
vote
1answer
127 views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []

I have been battling with this for few days now. Below is my scenario. I do have a trigger on Sampling__c object that updates the owner and assigns a manager for the request created. When updating ...
2
votes
0answers
48 views

Customer Community Plus Users can not access case sharing

We have a lot of Users in Communities with Customer Community Plus licenses. An error appears if the user want to have access to Case Sharing. With any other license (e.g. Customer Community Partner) ...
1
vote
2answers
41 views

Need to share record without manual sharing

I have set of 5 custom object and one parent object for them. suppose A is parent record and its child record of different object are B,C,D,E and F. What i need is owner of record B can read/edit B ...
0
votes
1answer
41 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
21 views

Share cases from child account to parent

I'm developing a customer portal which needs to display cases associated to running user account. As cases are private, I just have to do the following query to get all cases for each user. SELECT ...
0
votes
1answer
22 views

Reports folder issue

I got a problem fpr which I am unable to figure out the solution. I was asked by a person that if a particular reports folder is restricted to only individuals that he asks to assign? If thats the ...
2
votes
1answer
76 views

OwnerSharingRules removed from Summer 15 API

As stated here: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_ownersharingrule.htm OwnerSharingRules have been removed from the API. For example, the folder ...
1
vote
1answer
23 views

Related to Customization?

In a scenario there are two users one is p1 and p2. What I want is when any users of these create a record in object the other user must not see that. We have to do this by putting the sharing rule as ...
1
vote
1answer
51 views

Apex class referered from Process Builder : Can Apex Class be without 'sharing' keyword

I am referring to an apex class from the Process Builder. The process is executed when the owner of any record changes. Based on that, I am changing the owner of other object's records (the object is ...
3
votes
0answers
78 views

Access to Custom objects for Customer Portal Users

We have customer portal and We have exposed Custom objects that have lookup to Account object and private sharing to Customer portal users. This is done by adding the sharing set such that User's ...
1
vote
1answer
30 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. ...
1
vote
1answer
32 views

Getting Insufficient Access on task record while trying to edit it

I have a Job Record and Two Users like User A and User B. User A creates a task on Job Record 123 and tasked it to User B. Now User A is created by of this newly created record and user B is owner of ...
2
votes
4answers
150 views

RecordType Security Settings

I have four record types as follows: Master Owner Contractor Partner Master record type is for creating parent accounts. So the requirement is the users should only be able to read the Master ...
1
vote
1answer
24 views

$Action.MyObject__c.Share is not valid for this Organization

On a VisualForce Page, I have a merge field: {!URLFOR($Action.MyObject__c.Share, MyObject__c.Id)} When I try to save it to server, I am getting the error: Action $Action.MyObject__c.Share is ...
4
votes
1answer
80 views

Unable to edit Public Calendar Event

One of the user is not able to edit some of the public calendar events. Here is the error message when the user is trying to edit the event. Insufficient Privileges You do not have the level ...
8
votes
3answers
160 views

Does “with sharing” only apply to 1st entry point of code?

I was watching an old Dev 501 video today (#4 Classes & Objects) in which the instructor said profile based sharing rules were only checked at the entry point where apex code begins it's ...
9
votes
2answers
445 views

How does lighting authentication work?

I'm new to Salesforce. But I have quite experience with modern SPA frameworks (angular and mean stack). I'm experimenting a bit with Lighting framework (=aura components). How does the ...
1
vote
1answer
74 views

Issue deleting object

I have a strange problem that I cannot figure out. I have a database model that looks like this: The A object is shared private in the org. User A creates record 1 and will become the ...
1
vote
0answers
56 views

In what part of execution order are Owner Based Sharing rules evaluated?

Salesforce do specify that Criteria Based Sharing is evaluated quite late in the execution context, but the documentation makes no reference to Owner Based Sharing: From ...
0
votes
1answer
29 views

Share record(s) based on user custom field?

I have a custom field on my user (customId) that corresponds with the value in a custom field on my object (customId as well). I'd like for a user with the customId of A2 to only see records where ...
0
votes
1answer
29 views

Need to share a record with a Community User and all others in their account. Can this be done without code?

I have a Custom Object X that has Org Wide Defaults of "Private". The owners on the records are always internal users. We would like to share the object with customers that belong to the account for ...
0
votes
2answers
102 views

Private or public read-only Organization Wide Settings for custom object?

I would like to know about how can I distinguish whether a Custom Object OWS is set to Private or Public read-only via Apex. As far as I know and find referenced here Get object sharing setting on ...
0
votes
0answers
50 views

Get 'grant access using hierarchy' value in Apex

My question is the next one: Is it possible to get through Apex code the value of the checkbox besides every custom object which marks the 'grant access using hierarchy' option in the Sharing Settings ...
2
votes
1answer
68 views

Using System.runas in Non Test Mode

I have a special requirement to protect a custom object from admins modifying through all channels like API, workbench, standard platform feature etc but should be able to view through all channels ...
2
votes
1answer
22 views

If object is private but its lookup allows Read, what will happen?

What will be the access level for the lookup field in these 2 scenarios: MyObject is private, object-level permissions allow Read, and lookup to MyObject allows Read Same as 1 but object-level ...
1
vote
0answers
128 views

Controlled By Parent (OWD)

Order has lookup to Account,Contact,Contract,Quote and Order and when you set OWD of Order object as Controlled by Parent and there is no Master-Detail relationship on Order Object then who is the ...
2
votes
1answer
59 views

Mapping function for apex sharing

So I'm trying to create a function that allows you to create a sharing rule through Apex with any Object. Is there a way to generalize this so I don't have repeating code? From what I understand the ...
0
votes
1answer
31 views

Internal Case is automatically shared with external contact if “Contact Name” field is populated with the external contact

Internal case would be shared with an external user once that user has been added as the "Contact Name" on the case even though the intention was not to share the case with the external user. Is there ...
1
vote
1answer
21 views

Data-driven sharing rule?

Is there a way to set up a sharing rule that shares a record with a user who is specified in a user field on the record being shared?
0
votes
1answer
38 views

Integer declaration

I have below method in a public with sharing class. In the method, I need to use an integer but unable to declare that. Can someone please help me in integer declaration here? Snippet: public with ...
1
vote
1answer
31 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 ...
1
vote
1answer
50 views

Updating account on opportunity causes owner sharing record get deleted

Workflow updates account owner to generic user 'SFDC Admin' when ever account are created by users. with that said.. If any user is updating account on opportunity, it is resulting in deletion of ...
0
votes
0answers
19 views

Access information against the actual object

I wanted to know what is the best practice of getting access information of a custom sObject? For example I have customized Account's field CustomObjectID Lookup(Custom Object). I have such Sharing ...
2
votes
1answer
93 views

Share a contact with particular user using apex managed Sharing

In my Org. OWD setting for Account Object is Private and for Contact it is Controlled By Parent. So whenever I want to share particular record I am creating an Object of ContactShare and try to update ...
0
votes
0answers
44 views

Trigger to automate Account Teams not setting sharing rules correctly

I've developed the following trigger to automatically create an Account Team member when an Account is assigned to certain profiles. The goal is to continue to provide 'ownership' of an Account to a ...
1
vote
2answers
148 views

Insufficient Privileges error on record detail in Partner Community

I've got Partner Community Users (not High Volume) and I want them to see a Contract record. I recognize there is no ContractShare and his visibility must be absorbed from the Account The Sharing ...
1
vote
1answer
28 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
195 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 ...