Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sharing]

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

2
votes
0answers
11 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
88 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 ...
2
votes
2answers
31 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
20 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
23 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
24 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
44 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
34 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
31 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
25 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
16 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
28 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
33 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
32 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
12 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
28 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
44 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
38 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
21 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
34 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
29 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
38 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
66 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
24 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
15 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
40 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
48 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
29 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 ...
3
votes
1answer
140 views

Apex class invalid for community user but not standard

UPDATE: this might be a Spring 19 only issue. Will try to confirm this. If I create an opportunity with a standard Salesforce license, no problem. But if I try the same operation as a community ...
1
vote
1answer
138 views

calendar sharing based on role or profile

I have a requirement where the calendars should be shared based on role/profiles. For eg: I have a profile named Marketing. This Marketing profile user's calendar should be shared with Sales Manager ...
0
votes
2answers
53 views

Sharing Rule is not granting access to a public group

I am working with an object called Scope Library. I want users to have read access by default. I want the group Presales to have read, edit and create access on the object. To give users read only ...
0
votes
0answers
78 views

Can we hide “Unfiled Public Classic Email Templates & My Personal Email Templates” for Partner community users?

We have a requirement that we need to hide the default "Unfiled Public Classic Email Templates & My Personal Email Templates" from all the Partner users except the administrator. ...
0
votes
0answers
20 views

Why Customer Community Login user doesn't see one Salesforce user but sees another?

BACKGROUND We have a trigger on the FeedItem (Chatter post) which uses a helper class: public without sharing class FeedItemTriggerHelper { public static void handleAfterInsert(List<FeedItem&...
1
vote
3answers
48 views

Does Sharing Rule Prevent Role Hierarchy

I used a sharing rule to provide the subordinate role (Inside Sales) to have Read/Write access to the accounts of the role above it (Admin). It works, but now the users of Inside sales cannot edit ...
0
votes
2answers
64 views

How to override Opportunity Org-Wide Defaults Public Read Only

I would like to create a permission set or role which overrides the Opportunity Org-Wide Defaults of Public Read Only, such that users in with the permission set or in the role would only be able to ...
0
votes
1answer
15 views

Cannot Edit The Contact Record That is Owned By Other Users

Can I edit the Contact record that is owned by others related to the Account, without giving Modify All object level permission for a profile?
1
vote
1answer
69 views

Unable to Create Lead - Insufficient Privileges

I am attempting to allow a profile to create a lead. The profile has: The lead record type assigned. The correct page layout assigned. Create, read, and edit permissions assigned for the lead object....
3
votes
0answers
260 views

Guest license users cannot access ContentDistribution object anymore?

I have a Site, where external, unauthenticated users can access some of the files we store in Salesforce. To achieve this, I use Content Distribution records, to obtain the public URLs for these files....
0
votes
2answers
170 views

Apex Trigger Handler - Sharing permissions

We update some objects in our trigger handler, the user does not have access to these objects. We want the trigger handler to run in System mode. Should we have the 'without sharing' keyword on the ...
1
vote
0answers
81 views

How to show Multi-User calendar view (Events/Tasks) to my partner Community users calendar home?

In my sandbox admin having access to see Multi-User calendars(events/tasks) in classic and Lightning. but in admin community not having access to see Multi-User calendar view, as well as Partner ...
1
vote
0answers
49 views

Problem with Case sharing access

I'm trying to resolve a sharing issue with Case records. The org-wide defaults are private Accounts, private Opportunities, Contacts controlled by Parent and Cases are private. If a case is owned by ...
1
vote
1answer
26 views

How does default Sharing work for Events with no attendees?

I'm trying to understand the Event sharing rules, as I have an Email Service that will run with minimal permissions and that needs to query Events by ID (event IDs will be present in the emails). ...
0
votes
0answers
16 views

Sharing behavior when uploading data with owner, created by

Uploaded some contacts where the Owner, Created By fields set to user abc(I enabled audit fields for my API only user) Then tried uploading custom object X__c where it has a lookup to contact, Owner ...
0
votes
0answers
26 views

Sharing in Salesforce Community

I have a report based on a custom object X. X has a lookup to Account. The report is for Partner Community users. A commnunity user should only see the records of object X associated to the Account ...
0
votes
2answers
60 views

Option to share a file uploaded privately with a Community User

When i upload a file under Files Tab we have share option. But we can only share with internal users...but not with partner users. I was wondering if its possible to share file with a partner ...
2
votes
1answer
38 views

What is the behavior if External Org-wide sharing model is disabled?

If you don't have External Org-Wide sharing models enabled, what is the default behavior for external user? Does it get the same value as whatever it the Org-Wide setting is? Or is it defaulted to ...