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
8 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
1answer
119 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
27 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
22 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
17 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
42 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
2answers
107 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
19 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
38 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
21 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
20 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
25 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
25 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
109 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
52 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
75 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
20 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
120 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
53 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 ...
0
votes
0answers
36 views

Account hierarchy for Salesforce customer plus community

We have implemented Account hierarchy in Salesforce. Now we are implementing customer plus communities and our requirement is that users related to Account 1 should be able to view/edit all the ...
1
vote
1answer
25 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
30 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 ...
1
vote
1answer
51 views

Sharing of a junction object

What access would a junction object have if one master object has read-write access while the other master object has read access through the sharing rules with organization-wide defaults private for ...
0
votes
0answers
6 views

Cases created for portal users before their user is created are not shared with the portal user in unit tests

I'm making some changes to a security model to rely on standard Salesforce security. When I remove a Share Set that grants edit access to an Portal User's Cases because that's redundant, and we need ...
1
vote
1answer
35 views

Can I send an email without sharing?

I'm trying to send some emails using the Messaging API. I'm constructing instances of Messaging.SingleEmailMessage, setting the values of whatId, whoId, and templateId, and then sending through ...
0
votes
0answers
37 views

Delete sharing of record with “All Internal Users” for Survey in Apex

Whenever I create a Survey record, it is automatically shared with "All Internal Users". This is not letting me share the records according to Sharing settings. Instead of manually deleting that row, ...
-5
votes
1answer
26 views

how works Role Hierarchy in salesforce [closed]

If I have three users A,B,C and A is superior then B then C.I created one custom object School__c.its owd is private.The user C has read/write permission.All are in same profile.role is different like ...
1
vote
2answers
17 views

Edit Default Sharing Settings of a Share Object

As per the title I am wondering if it is possible to edit the default sharing settings for a particular Share object. For instance I would like to give a group of users edit access to the CaseShare ...
0
votes
1answer
33 views

Lightning DataTable with CaseShare - Returning User or Group Name

I am using the lightning datatable in order to display the CaseShare data for a Case record within a lightning component. The feature works great however as the field UserOrGroupId on the CaseShare ...
0
votes
1answer
77 views

Sharing button is not showing on Account detail page in Lighting Experience

I can see the sharing button for Account object in the Edit Layout but it's not showing in the detail page. Can anybody please help me on this.
0
votes
1answer
39 views

How to get a Community User able to edit its own contact record inside the community?

I need provide Users under Community User Profile be able to edit their own Contact record, also Users with Partner Community Profile be able to edit their own contact and other Community Users ...
1
vote
0answers
15 views

Getting AccountTeamMember with Edit on OpportunityAccessLevel when OWD are Read Only

We're using apex to dynamically add/remove users to Account teams which seems to be working fine but we're noticing that users added are only getting Read access to Opportunities after being added to ...
0
votes
0answers
46 views

Set default value of 'Default External Access' to Private for new External Objects

In Sharing setting, is there any way we can set the default value of 'Default External Access' to Private for new External Objects? Like, whenever an External Object comes in, the 'Default External ...
0
votes
1answer
74 views

Content Builder “Shared-Tab” not visible in child BUs

In the parent Business Unit, a folder in Content Builder is shared with a couple of child BUs. As far as I can see this, everything has been set up according to the documentation. However, in the ...
0
votes
1answer
64 views

Implicit sharing on custom objects relationship

For a parent and child in a lookup relationship with a Grandparent of the parent. If a OWD is set to private for all objects then what will happen if- 1) CRUD access is not provided to any two of ...
1
vote
1answer
23 views

Restrict FLS for a user when profile has access

For a certain Profile, the access to a group of fields on object is available. How can we restrict FLS for a specific user to those fields having the above mentioned same profile.
1
vote
1answer
41 views

Implicit sharing - role configuration

I need some help on the implicit sharing to understand my misinterpretation of the documentation. According to the doc.: Sharing between accounts and child records Access to child records — If ...
0
votes
2answers
30 views

Share a File Between Communities

I have files that were uploaded to the Asset Library for a Community by adding them to the Rich Content component on a Community page. When I look at the File's sharing settings, I can see that it is ...
2
votes
1answer
40 views

what happens to the records if record owner is inactivated or deleted from the org

I have private sharing mode (OWD) for a custom object. Thus, only record owners have access to their respective records. Now one of the owner (user) needs to be deactivated. how to handle the records ...
3
votes
1answer
96 views

APEX Sharing stopped working in community

We had a small widget that allowed customers to share records that were set to a private sharing model in our community. Everything was rather simple and it would simply allow them to select users ...
0
votes
1answer
28 views

Share accounts by field value

I need to share account's (read access) based on a lookup on account. I have a community of partners in which I have two profiles, manager and promoter. All promoters should have read access at the ...
0
votes
0answers
18 views

Lookup Filter or way of limiting results

I have a custom object that is related to the Case via a lookup which hosts the type of the case and some other variables. One of these variables is Contact Type which is currently a multi-select ...
0
votes
0answers
16 views

Past emails not showing for single user

I just got our last user onto LEX, and he needed help locating where past emails show that sales reps sent. I showed him past activities on the contact and account level, to my dismay, his view of ...
0
votes
1answer
51 views

Sharing rules in process builder and flow - Too many SOQL queries: 101

I created a flow that is supposed to remove manual sharing of contracts when editing the field on the contact. The contract owner (partner user) has a custom field in which I enter the manager and the ...
0
votes
0answers
78 views

community user unable to edit tasks assigned to them

I have a use case where I have to assign tasks to customer community users and I want them to see those tasks in community and mark them complete once they complete the task. Btw I am using 'Customer ...
0
votes
1answer
38 views

Manual Sharing/Opportunity team exposes other related data

We have two separate teams(A,B) which are not supposed to view each other's data. Specially account details, activities, contacts and opportunities. But sometimes user A1 has to share opportunity ...
0
votes
1answer
20 views

Visibility beyond Sharing Rules?

our Org has a private Wide default settings. One custom profile doesn't have visibility on a particular Account recordtype (i.e. user with that profile can't read,cread,edit no records with that ...
0
votes
0answers
22 views

record visibilty vs record level access

What are the difference between these? In the Sharing and Visibility Designer certificate exam guide it says: Articulate different security capabilities with respect to record visibility, CRUD ...