function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BenPBenP 

Allow internal users to delete site user records

I have a force.com site where the guest user account creates records.  The problem I have is that internal users seem to be below that guest account in the hierarchy (they can't delete records owned by the guest account).  I share records owned by the guest account to internal users (read/write), but they still can't delete.  I must be missing something simple here.  ??

sfdcfoxsfdcfox

Read/Write isn't "Full Control" (including Delete). So, you'll need to move those users so they are above the Site users in the role hierarchy.

BenPBenP

I agree and that makes sense, but the site user runs under the guest license which doesn't seem to have a role.

SnrSvcsWASnrSvcsWA

We have this same issue. Ben, did you ever find a resolution (or has anyone else)?

BenPBenP

I ended up using demandtools to change the record owner twice daily.  There could be a better solution like a trigger, but that's what worked at the time.