You need to sign in to do that
Don't have an account?
Issue with Querying Private Object in Customer Portal
Hi,
I have made my cases object private and have a custom visualforce page and controller to retrieve a list of cases.
On the standard page, a user can only see those cases they have read permissions on.
On the visualforce page, the query also retrieves cases where the case contact is also from the same account. However, the user does not actually have permission to these cases, and gets a permission error when they try to access it.
Just for my own sanity, when you run a query it should only retrieve those objects which you have at least permission to, correct? It has been working like this for everything else I can remember.
Is there something weird with case sharing and customer portal licenses?
I am using overage customer portal licenses in a community.
I have made my cases object private and have a custom visualforce page and controller to retrieve a list of cases.
On the standard page, a user can only see those cases they have read permissions on.
On the visualforce page, the query also retrieves cases where the case contact is also from the same account. However, the user does not actually have permission to these cases, and gets a permission error when they try to access it.
Just for my own sanity, when you run a query it should only retrieve those objects which you have at least permission to, correct? It has been working like this for everything else I can remember.
Is there something weird with case sharing and customer portal licenses?
I am using overage customer portal licenses in a community.
For the data do you get a a permission error or just the field shows up as blank?
The Visual Force page and the API calls I've made (after granting API access) don't return errors, just zero records. It seems to be related to the privite as I do get results when I querry on public objects assocaited to the user. We have a sharing set in place that is meant to grant access to the object based on the connection to the contact, but it didn't change the zero result response.
Thanks for your quick response. Any thoughts?
Have you set up Sharing Sets for the Case? http://help.salesforce.com/HTViewHelpDoc?id=customer_portal_setting_light_users.htm&language=en_US
Is this in a sandbox? Can you see the cases when you change the sharing model to "Public"?
Also, check the sharing on the case - (Sharing Button). It should show sharing to that user like this:
Thanks for your thoughts at least, it makes me feel less like I just don't know anything when other people are also a little stumped.
I am facing the same issue in a full sandbox used by our organization. I login with a customer portal contact/user, create a case of particular record type(using a visualforce page created by us) and the case gets created in the background but when I try to search the case its not retrieved through the portal search. I can see the case is created in salesforce and I am able to search the case through salesforce. This functionality worked well previously recently something has gone wrong with customer portal. I approaced the Salesforce support team but no solution from them till yet.
a) Case object has been given Public Read Only (OWD) access
b) Contact belongs to "Customer Portal Manager Custom" profile, profile has Read/Create/Edit access on Cases
c) Controller of the page has keywords "with sharing"
d) Case has been assigned to the account which is same on the contact
e) Sharing button shows full access to the owner and Related Portal User
f) Customer portal user is the owner of the case.
Please give some solution to resolve this problem soon.