You need to sign in to do that
Don't have an account?

Avoid Sharing to users who have no access to the object
Hi all,
Is there a way to avoid sharing records fro users who dont have access to the object.
in soql even we used with sharing keyword, records are retrieved for the users who have sharing records but not read access in profile
Hello,
Use 'with sharing' modifier while defining the class. Ex:
public with sharing class sharingClass {
// Code here
}
For details refer: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_keywords_sharing.htm