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
0
votes
0answers
9 views

File “Customer Access” Permissions

In Winter'20 there was added feature to allow "Customer Access" for files. Some of the users need to have access to it. Maybe someone knows or played with that? For the target user, this is just ...
2
votes
2answers
33 views

Changing a global class from with to without sharing in a managed package

I have a global class in a managed package and want to change it from with to without sharing in a new release. Is this possible? Could I do this in a patch?
3
votes
1answer
105 views

Can't deploy externalSharingModel setting with SFDX

Background: I have a problem where if I try to deploy my entire set of metadata to a newly created scratch org, it fails because the sharing settings of certain objects are incorrect by default, ...
0
votes
1answer
47 views

Unable to Insert ContentVersion record as a Community User in Test Class

I'm unable to create ContentVersion records running a test class as a Partner Community user. I have created a Partner user using the same methods displaying in the test class, tested the process ...
0
votes
1answer
21 views

help with soql to fetch sharing details of partner account

I have partner community users which have access to our partner community. We have couple of sharing settings applied for partner account when the record is created in Salesforce. We can find this ...
2
votes
1answer
55 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
9 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
27 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
107 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
50 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
23 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 ...
2
votes
1answer
132 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
15 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
10 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
34 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
19 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
19 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
17 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
18 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
20 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
37 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
82 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
39 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
26 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
16 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
88 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
16 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
23 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
28 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 ...
1
vote
2answers
56 views

Sharing button is not visible in lightning in case object

I have installed a component called Lightning sharing to make sharing button visible for all objects in lightning. But the sharing button in not visible on case object. But it is visible in contact ,...
0
votes
1answer
23 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.
1
vote
1answer
180 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 ...
9
votes
2answers
280 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
72 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
36 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
31 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
66 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... } ...
5
votes
3answers
306 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
84 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
70 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
25 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
35 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
30 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
54 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
340 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
134 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
88 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' ...