0

I have a custom object which is having look up to Account and contact and few other custom objects. Can users with Guest user License delete such records.

I have been trying to delete with an automated process but It hasn't been happening. All the object has been given maximum object level access. Sharing setting of account and contact is Public Read/write.

  • How are you deleting? Apex class is with or without sharing? – Pranay Jaiswal Jun 20 '18 at 10:22
  • @PranayJaiswal, It is getting deleted through managed class. So I cannot tell if it is using with or without sharing. But I have given maximum possible object level access to all related objects. – devforce Jun 20 '18 at 10:25
  • Object access and record access are different things... can you add a middle class without sharing that calls that manged class methods? – Pranay Jaiswal Jun 20 '18 at 11:06
0

A Guest user is mostly associated with a Force.com Site. By default, the Site Guest User does not have access to any objects, fields, or VisualForce pages. You need to enable permissions and page visibility that are applicable to your use case.

Giving full object level permissions might not work in this case as Guest User Profile separately controls the permissions. So, you will need to open the Site --> Navigate to "Public Access Settings". This will open the guest user profile. Here, you need to enable the necessary permissions.

You can only assign the permission to read/create on standard objects, but can assign full create-read-updated-delete (CRUD) on custom objects. Please read https://cloud4good.com/announcements/site-guest-user/. Seems to be helpful.

| improve this answer | |
  • As mentioned in my question, all the related objects have been given maximum object level access. – devforce Jun 20 '18 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.