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.

3
  • How are you deleting? Apex class is with or without sharing? Commented Jun 20, 2018 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
    Commented Jun 20, 2018 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? Commented Jun 20, 2018 at 11:06

1 Answer 1

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.

1
  • As mentioned in my question, all the related objects have been given maximum object level access.
    – devforce
    Commented Jun 20, 2018 at 10:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .