The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [sharing]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
35 views

Is there a way to determine by Apex if `Grant Access Using Hierarchies` is turned on or off?

We have a requirement to display list of records available at territory selected. Since Grant Access Using Hierarchies can be turned on or off this can affect the records we need to display. We don't ...
0
votes
1answer
6 views

Limit records based upon multiple criteria on object and user

I'm looking at limiting access to certain records such that should a record be assigned to a certain group of users (via some field on the object), only those users would be able see or edit those ...
1
vote
1answer
20 views

Default Customer Community Plus Roles expose all Account's

I would like all Account's to be private, however users can see any Account enabled with Customer Community if that Account Owner is in the same Role as them. Using "Account Access", by clicking on "...
2
votes
1answer
82 views

API User Access to Enhanced Notes (ContentNote) External Object

Summary: Org 1 wants to be able to access data that lives in Org 2. For most use cases, we have this figured out using the Salesforce Connect Cross-Org Adapter. However, there is a specific need for ...
0
votes
1answer
15 views

How to share a lightning email template folder?

I'm trying to find the screen where you can share lightning email template folders with other users but can't see it anywhere. It's mentioned in here so I know it exists: https://releasenotes.docs....
0
votes
0answers
20 views

Alternative to Delete Trigger for tracking deleted records in OpportunityShare Object

We want to track the deleted records in OpportunityShare Object for some reason. This object doesn't support to write a trigger. Is there way to track those deleted records?. Any suggestion would ...
1
vote
1answer
48 views

Edit Permissions for Guest Users after “Secure guest user record access”

Salesforce Alerted me that at the end of February we would be forced into the security update for "Secure guest user record access". I tried this in my sandbox and it seems to have some adverse ...
0
votes
0answers
12 views

Cannot Forward Records to Another Salesforce Organization via S2S standard functionality

After successfully setting up Salesforce to Salesforce (S2S) using this guide : https://help.salesforce.com/articleView?id=business_network_setup.htm&type=5 I have set up the connection between ...
0
votes
0answers
9 views

Sharing List View Salesforcebug Workaround

Any workaround for this type of scenario? Cannot select the group I wanted to :( it is displayed behind the dialog... I cannot target the z-index aswell... any workaround for this? PS: No Coding... ...
2
votes
0answers
24 views

Why Salesforce thinks I'm deploying a certain sharing model, while the metadata tells another story?

I have the account and contact object metadata files with the following sharing types: Account <sharingModel>ReadWrite</sharingModel> Contact <sharingModel>ControlledByParent</...
0
votes
0answers
17 views

Best practice for controlling record access based on User's Country

The requirement: All Users in South Africa should only be able to edit Accounts (parent) where Country = "South Africa". They should also be able to edit all Projects (child) and Project Roles (...
0
votes
0answers
18 views

Unable to share an attachment with Community User / record owner

How do I: Share an attachment with a Community User, who owns the record. In this case, the Community User owns the Opportunity and Account, and the attachment is in the Opportunity Configure ...
0
votes
0answers
16 views

Sharing Set not working - Customer Community

UPDATE: Nothing is working, Quote is getting shared from the trigger. I have two custom profiles Employee and Employer cloned from Customer Community Plus Login Profile. I have tried to set Sharing ...
0
votes
0answers
16 views

Community Users have access to internal records?

For some unknown reasons, my org's Community Users have access to records that the internal org members generated. I have checked the following setting: Opportunity Sharing Rule: none that applies to ...
0
votes
1answer
11 views

INSUFFICIENT_ACCESS_OR_READONLY when editing an Order

When editing an Order (either through the UI or via an Apex program that does DML), I get First exception on row 0 with id 801.... INSUFFICIENT_ACCESS_OR_READONLY insufficient access rights on ...
0
votes
0answers
9 views

Case object Access for other instance support people

my customer has acquired by some comp. they have two salesforce instances already. I would like provide my instance case object access to other instance support team. they should able to see and ...
0
votes
1answer
31 views

Sharing Rule Calculations Missing Buttons

I am missing the buttons on the Share Calculations (suspend, resume, recalc). How do I get these visible on the page?
0
votes
2answers
62 views

Why is “isActive” on a User returning false when I'm sure the User is in fact active?

Long story short, I want to share a Contact record with a User given certain criteria in an Apex trigger. One of the things I want to check is if the User is active because creating a ContactShare ...
1
vote
1answer
33 views

Sharing Setting on MAster Detail Field is not being enforced - Bug or correct SF behaviour

There are two Objects 'Parent' and 'Child'. Two User Admin and LocalUser. As per the profile of LocalUser : Parent Object has Read permission Child Object Has CRU permission OWD for Parent Object is ...
0
votes
1answer
25 views

Contact from Partner User are hidden from Partner Executives

Here's my setup I create a new Dev Org. I did made Contacts Private internally and externally. I went in the Community Settings and set Number of partner roles to 3 I enabled Partner Relationship ...
0
votes
0answers
15 views

Salesforce community and sharing - why are community accounts shared with all internal users of the same role and below?

We have a Salesforce community implementation and at the same time do not have a concept of role hierarchy in our org. Right now all internal users have the same role, "Sales User". Up until now, ...
0
votes
1answer
72 views

Rest API request on behalf of specific user

I have to retrieve data from Salesforce (using default endpoint for Rest Api SOQL queries) for a specific user. Now for getting Access_token I'm using "grant_type: password" with "System User" who has ...
0
votes
1answer
15 views

records deduplication and sharing after insert [closed]

Here is my question: Org's personal account is enabled. The account sharing setting is set to private, sales team members Sales A and Sales B can not access each others' account records. Sales A and ...
0
votes
0answers
20 views

AllInternalUsers group not working on scratch org

I was trying to test sharing rules on a custom object: Record_For_Sharing__c The object's organisation-wide default sharing setting is private for both external and internal users. I added a sharing ...
0
votes
1answer
20 views

Account/ Opportunity sharing

Is there a way to add "Account Access" option under the "Opportunity Access" option (like it is shown in Account sharing) without creating a custom VF page and just by playing around with the sharing ...
4
votes
1answer
23 views

Missing Organization Feature: Opportunity.Sharing

When attempting to update our managed package in a subscriber org the install is failing with the following message: Opportunities Missing Organization Feature: Opportunity.Sharing That makes ...
0
votes
1answer
18 views

How to export all Sharing Setting Name, Rule Criteria and User/Group Shared with value in an Org

How to take export entire Sharing Setting Name, Rule Criteria and User/Group Shared-with value in an Org in csv/excel. Step by step process explanation will be helpful.
0
votes
0answers
74 views

Enable Query All Files permission

I see from the release notes that you can allow a user to query all files, even ones they don't own. I've having trouble giving myself that permission. I have a system admin profile, with view all ...
6
votes
2answers
203 views

Defer Sharing Calculation - Scratch org issue?

I know there is possibility to turn on this feature using Scratch Org config file. { "orgName": "Scratch1", "language": "en_US", "edition": "Enterprise", "features": ["Entitlements","MultiCurrency", "...
0
votes
1answer
52 views

Dynamic Sharing Rules Based on Formula Work Around

I have 4 custom objects I'm using that are all set to private - Project Location, Project, Field Items & Materials. I have multiple Roles that need access to all these records depending on if ...
0
votes
1answer
33 views

Record Sharing for Users with Complex Reporting Structure

I am trying to come up with an optimal solution for below use case. I have an org structure like this and There are VPs for each department and A department should not see each others records. VP ...
0
votes
0answers
30 views

Can Code triggered by Chatter-Free user run in System mode?

I am exposing some code to Chatter Free user which modifies Account objects. I know that Chatter Free users are not directly able to modify them. But can my trigger code do it on behalf of them? As ...
0
votes
0answers
25 views

How to hide records from Community users based on record type

I have requirement wherein i need to hide/show records from Community users based on record type i.e., Community Users should only see records of X object but only for the type of record type assigned ...
-1
votes
1answer
54 views

How does object inheritance interact with sharing inheritance?

Let's say I have some class: public abstract without sharing MyUnsharingClass { // Some methods... } which is extended by public SomeClass extends MyUnsharingClass { // Some methods... } ...
4
votes
3answers
206 views

External Sharing defaults misbehaving on freshly created Scratch Org

We use SFDX with our Managed Package development, and have been for a few months now. All was fine until today where new scratch orgs are messing up sharing. We have scripting that creates the ...
0
votes
1answer
41 views

Showing user's assigned default record type on a lightning component

On a standard button override component I'm getting all record type values. Is there a way to show default record type assigned to the user's profile? @AuraEnabled public static Map<Id, String> ...
0
votes
1answer
66 views

with sharing without sharing vs extension?

While going through manuals, it was mentioned Many times that apex classes will not consider security of logged in user but it will run in system mode and we should add custom controller extension to ...
1
vote
1answer
44 views

Flow Not Creating Account Share Record (Works in Debug Mode)

I have a flow that is working via the flow builder Debug page, but not when triggered in Salesforce. It worked several weeks ago, so I wonder if there's something with Summer '19 that's causing an ...
0
votes
1answer
22 views

Impacts on Page Layouts, Record Types, Objects and Fields on Profiles Clean Up

Since the Salesforce org becomes old, there is a need for Clean up. On this process, looking to clean up the profiles in the org. I have already created an Administrative User report to check the ...
1
vote
0answers
34 views

Sharing and visibility sample question

I am preparing for my Sharing and Visibility Designer exam but get through this question. This question is coming from focusonforce I feel this answer is kind of strange to me. Since implicit sharing ...
0
votes
1answer
29 views

All users in one role?

tldr: I'd like to just put every user in the same role, but I'm not sure what consequences that'll have besides messing up role-based sharing, which we don't really use. What else could be impacted? ...
3
votes
0answers
53 views

Which org best represents the Summer '19 GA orgs?

We have a Summer '19 preview org (https://gs0.salesforce.com) created on 5/31/2019 and a scratch org (https://drive-momentum-6799-dev-ed.cs67.my.salesforce.com) created on 5/30/2019. They differ in ...
1
vote
2answers
208 views

Inherited Sharing vs No Sharing declaration

We have a rats nest of classes. Some are with sharing, some are without sharing, and some have no declarations. Salesforce relatively recently introduced "inherited sharing" How is this different ...
0
votes
1answer
104 views

How to set the externalSharingModel for managed package objects using automation?

Related to System.runAs for CspLitePortal Profile Users recently started returning no rows, I am now wondering how to automate the setting of the external sharing model for some SObjects contained in ...
2
votes
1answer
84 views

System.runAs for CspLitePortal Profile Users recently started returning no rows

We have some tests that use System.runAs for a User created like this: Contact c = ...; Profile p = [ select Id from Profile where UserType = 'CspLitePortal' ...
2
votes
0answers
42 views

ant won't set sharing OWD on new objects?

I am using ant migration tool to deploy a new custom object to a target. This object has external sharing OWD set to Private. I've verified this in the object metadata. <externalSharingModel>...
3
votes
2answers
124 views

Is it possible for Apex code to determine whether it is with or without sharing?

As an author of the code, I can, of course, know if the context is with or without sharing when I write my code into a class with either of these keywords. But what if I am writing my code into a ...
3
votes
2answers
96 views

Sharing of Accounts in Enterprise Territory Management

I struggle a bit with the ETM topic. I have set up ETM in SF and defined the dataflow to cover ETM sharing logic (with security predicate) in Analytics. However when I checked for a specific user I ...
1
vote
1answer
28 views

How is user gaining ownership of an Account?

Upon changing the case access of a child role from "can edit all cases associated with accounts that they own" to "cannot access cases that they do not own" a user can no longer access a case. However,...
0
votes
1answer
46 views

Using without sharing methods inside with sharing class (with sharing applied)

I have a controller ControllerClassA which is with sharing. And i also have another class HelperClassB which is without sharing. I have a method inside a without sharing class HelperClassB which is ...