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

learn more… | top users | synonyms

0
votes
0answers
4 views

How can I find all users with whom my custom object is shared?

I have a custom Salesforce Object whose records can be shared via a combination of sharing rules and manual sharing. I would like to create a List of User sObjects with access to the record. The ...
7
votes
3answers
181 views

Making a public read/write record private

Disclaimer! I have searched for a result to this question on the web with no success therefore I need someone with expertise to review it and provide an answer. I use a public read/write OWD model on ...
1
vote
1answer
17 views

Generate report for Account User access?

How to generate a report for all User having what access to all account records. For this we tried of using UserRecordAccess. But for UserRecordAccess UserId is must and SQOL limit is 200. How we ...
1
vote
0answers
16 views

Role based sharing: All Components in Salesforce and what is the best way to make existing changes

Not sure what is the best way to ask this question I am listing down all the places (configuration only) components where force.com platform provides option to share/assign based on Role, Role and ...
2
votes
1answer
25 views

Is ListView visibility for Roles shared accordingly to Hierarchy?

I've made a custom list view and restricted its visibility by role, what happen is that the list view is visible for the specified role and all its upper parents in the roles' tree . Is it a standard ...
1
vote
1answer
25 views

How to properly use “Manager Groups”

I've just had the "Manager Groups" option enabled by SFDC. I am now trying to build an "Appraisal" object so that the records in it are only viewable by the record owner and anyone directly in that ...
0
votes
1answer
134 views

Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field

I am trying to deploy an update to a custom object. The object and classes associated with it work perfectly in my sandbox, but when I try to deploy, I get the following error: Cannot set ...
1
vote
0answers
40 views

Can't access merge fields in email template

We have a custom object XYZ whose OWD is set to private. In our salesforce community we have an apex class declared with the without sharing keyword as a result we are able to access records owned by ...
1
vote
2answers
33 views

custom extension has without sharing annotation but still runs in user mode

I have created a custom controller that extends a standard controller. My custom extension is defined 'without sharing'. Nevertheless, it seems to execute 'with sharing'. I get the feeling that an ...
0
votes
1answer
27 views

Auto-accept shared child records with Salesforce to Salesforce does not work

I'm trying to share child records (in a master-detail relation of a custom object) to an external org via Salesforce 2 salesforce. So I've set up the connection, published the object on the source ...
1
vote
1answer
48 views

User access level

I want to create 2 users in SF who should not be able to see each other's records. These 2 users should be of same role. How can this be achieved?
6
votes
1answer
60 views

Standard Controller behavior with not available ids - behavior changed?

Question Do standard controllers no longer throw exceptions if the current user doesn't have access to the passed in id? Has this always been that case or did this just recently change? Hoping to ...
0
votes
0answers
62 views

Sharing Set Customer Communities

Sharing set works only one per object for each profile in customer communities.Also Apex sharing doesn't works in customer communities.I have a requirement to share the records based on multiple ...
3
votes
1answer
51 views

pros and cons of Territory management

pros and cons of Territory management. can any one give the clear example, how the role sharing is effected to territory sharing
5
votes
1answer
123 views

Team, Role, and User Criterion defined access to Account feature

I have a private feature VF page on an Account. Our Account sharing model is Public Read with Edit rights given via Account Teams. I want to display this VF page only to: Account Team Members ...
1
vote
0answers
29 views

Account Team Access functionality

I have a question on Account access setting while adding Account Team. I have Account sharing rule that provides Read-Write access to a Role (R1). User U1 is with Role R1 U1 logs and can see the ...
4
votes
1answer
56 views

Customer Community Sharing

We have a customer community set up, and we are sharing custom objects based on a lookup to account. We created a sharing set - selected the correct profile and then we added sharing based on ...
0
votes
0answers
14 views

Public Accounts with a Child only seen by Account Team

I expect this will require Apex sharing. Is there any work around? Does anyone have experience? Public Read on Accounts. One Child Object to be private to Account Team, their superiors, and possibly ...
1
vote
0answers
114 views

Insufficient Privileges as System Administrator on Opportunity

I am the System Administrator (Standard Profile) and receiving Insufficient Privileges error when trying to access Opportunity fields. "Insufficient Privileges You do not have the level of access ...
3
votes
1answer
272 views

FIELD_INTEGRITY_EXCEPTION: field integrity exception: unknown (invalid user or group: 005XXXXXXXXXXXX)

I've a object called myobject__c. This object is private in OWD Setting. Now when admin create a new record of this object then I want to share this record with a user(community user). For this I've ...
3
votes
1answer
31 views

Other profiles do not have access to RowCause field for sharing

I am sharing a record using a visualforce interface. When I log in as the System Admistrator and share the record it works fine but when I log in as a user from any other profile except Sys Admin it ...
3
votes
1answer
51 views

Is it required for Security Scanner - global with sharing myBatch implement Database.Batachable<sObject>

I am about send my package for Security Scanner, So Is there any requirement to add "with Sharing" for all of my Batch Classes. global with sharing myBatch implement ...
2
votes
1answer
39 views

API AJAX Toolkit, Possible to specify executions w/ and w/o sharing rules?

One can easily run the AJAX Toolkit, but it will always run respecting sharing rules. Example of running a simple AJAX command would look as such: Example Source var result = ...
3
votes
2answers
35 views

Unit testing private sharing

Say I have a class marked without sharing for reading eg Account records without regard to sharing settings. (This would be used in contexts where the current user's privilege level would disallow the ...
2
votes
1answer
49 views

without sharing and delete?

I am creating a button that gives some users the ability to delete opportunities. The big caveat is that they need to be able to delete the opps where the owner is in the same role. I changed my ...
0
votes
1answer
44 views

How can sibling A in the role hierarchy delete sibling B's records? Implementation options?

How do you address the issue where two users within the same role need to be able to delete each other’s opportunities? In most cases, this can be done by having a super user above the others in the ...
0
votes
2answers
46 views

Unit Test User Context?

I'm implementing Communities and need to improve my org's security settings. I set Accounts to be private with a sharing rule of "Owner in all internal users" is shared with "All internal users". One ...
0
votes
0answers
15 views

Access to Partner when the Account added as an Partner to Opportunity

I have a requirement where whenever a Account is added to an Opportunity and if that Account is enabled a partner, then to give access to the Partner users of that Account access to the Opportunity. ...
1
vote
2answers
173 views

Authorization Required

I have created simple site that create a new case. Note : I have given the Site permissions Visualforce page,Controller ,Lead Object and Case Object. While execute the site Lead is created ...
1
vote
2answers
102 views

System.runAs(u2) can't see records created by System.runAs(u1) in same testmethod

I have written a class that is called from different triggers. This class accepts a list of api fields and an object name. The class will go through the api fields and check to see if the old value ...
1
vote
1answer
13 views

Copy sharing records

New to SFDC. If we use Informatica to copy data out from SFDC into a custom data warehouse, is there a way to copy the "sharing records" that SFDC maintains that determines which user has access to ...
2
votes
1answer
99 views

Why is Transfer Record a system permission? Is there any other way to accomplish the same thing on a per-object basis?

I have a requirement to grant a set of Users the ability to transfer ownership of all records of a certain object type, regardless of current ownership. I know I can accomplish this by granting this ...
12
votes
3answers
511 views

How to pass security review when using “Without sharing” by design?

I failed to pass security review for an app that has two classes using the "without sharing" keyword. Both were not choosen accidentally but by design. On class is SObjectUnitOfWork.cls from Andrew ...
2
votes
2answers
17 views

Is there a way to automatically share organizations with their parent organization?

I thought this happened automatically but right now when i add a parent organization to an organization, i still have to manually add the portal roles of that parent organization to the sharing ...
1
vote
1answer
78 views

Sharing rules on Community Users

I need to create a Account and have a lookup from account to Account as (Partner). Lookup will determine if related Account, related Contacts and Opportunities are visible to these Partner Community ...
2
votes
2answers
129 views

How to grant limited access to accounts?

I have a support rep that his role has access to ALL accounts. Support role does NOT have access to opptys. There is a request now to give a specific support rep, access to a specific account opptys ...
0
votes
0answers
23 views

How to Hide Sales data from partner users in the same partner role?

We have a situation, where one of our partners (partner portal user) has 3 sales people, whom he does not want to share the sales data between them. Our partner defaults to 3 partner role levels, and ...
4
votes
2answers
73 views

Contact visibility - what controls this

I have two users who are identical in roles, profiles, and group memberships. One can see a particular contact; the other cannot. We are set up so that Accounts have default access of "Private" and ...
2
votes
1answer
71 views

Sortof-Private Sharing

I am building a performance management tool for my organization, where the top Performance__c table needs to be private, so as to obscure the quota and commission data per employee. Challenge: Allow ...
1
vote
1answer
63 views

How do I set up calendar sharing in Salesforce?

Currently, our organization utilizes Calendar Sharing in the My Personal Information section in Salesforce. We have a team that makes calls that manages calendars for the Account Executive team. ...
0
votes
1answer
191 views

Sharing Records in Communities with Customer Licenses (No Partner Licenses)

In my organization, users in Communities are currently associated with a single account. When users are created, they are given a unique user name and contact. This has worked well in that the ...
0
votes
0answers
71 views

Authenticated Website user cannot update own record

We use sharing sets to share records between users with an Authenticated Website license. We had a lookup field to Account in all our custom objects to facilitate the sharing. Spring '14 brought with ...
2
votes
0answers
73 views

How can a Partner User will able to see Reports based on Product/Pricebook

As mentioned by salesforce.com the Partner Users can only able to report on S/C-objects which are Private in Sharing Settings, then how can Partner Community User can see Products/Pricebook fields in ...
7
votes
1answer
186 views

Why there is no OWD settings for Product Object

I was wondering why there is no OWD settings for Product Object. And as it was said that PriceBookEntry is a junction object for Products & ProductPortfolio then why there a OWD settings option ...
23
votes
1answer
314 views

InstallHandler runs under a special ghost user. What rights does it have?

When you install a managed package with a post-install script, Salesforce creates a special ghost user under which all of the post install activities occur. I think this is undocumented. Here are some ...
1
vote
1answer
65 views

Sharing Rules in Salesforce

I have the following requirement. In my organization i have 3 users. Let the first user is say UserA and he is admin. Second UserB and third UserC are one role below the Admin. Now I want the UserB's ...
5
votes
3answers
65 views

sharing opportunities with partners

Is there a way of sharing opportunities that are not closed with specific license type or profiles? I want to be able to share only closed opportunities with my partners.
3
votes
2answers
220 views

Can we delete records in share table with row cause as Rule?

delete [Select o.UserOrGroupId, o.RowCause, o.OpportunityId, o.OpportunityAccessLevel, o.Id From OpportunityShare o where RowCause='Rule' and o.OpportunityId='######']; Trying the above and looks ...
3
votes
0answers
18 views

How to check the progress of a sharing rule deploy

How can I check the progress of a sharing rule deploy. I made a sharing rule change but I have nowhere to check the progress of this job, therefore I cannot know when I can make another change to the ...
3
votes
1answer
214 views

The installed managed class is not visible

I have created a VF page and using class as extensions of the VF page. I have created a site in the VF page as home page. The page is getting displayed but when i click the submit button on the VF ...