Closed simonjohnparker closed 4 years ago
@simonjohnparker Apologies for not responding to this issue directly -- I wasn't notified of its existence for some reason. Let's continue via email and I'll close the issue when we've come to a conclusion.
Closing because this is solved via an update to CiviCRM Admin Utilities which introduces the CiviCRM Contact "Soft Delete" setting to override CiviCRM's default behaviour.
I am seeing this same issue on an install. Both this plugin ad CiviCRM Admin Utilities plugins are up to date.
I removed two Civi contacts, fully deleted, and the WP user is still there and has the same WP Role that would give them member access. I have the soft delete enabled on the admin utilities, just confirmed to be sure.
@rbaugh This plugin would be overstepping its remit if it deleted WordPress Users - it therefore doesn't. Did you modify the Membership or do a Manual Sync before deleting the Contact?
Also, please open a fresh issue rather than commenting on a closed one.
Hi Christian,
Currently using this plugin with roles, rather than capabilities. When a Civi member is status New, Current, Pending or Grace they are put in a custom WP 'Member' role, and for all expired/cancelled Civi membership status they are demoted to 'Subscriber'.
I deleted a contact in CiviCRM (soft delete to the Trash, not permanent) and ran a manual sync. This person's access wasn't changed, they remained in the WP 'Member' role. Although their Civi membership is technically stilling Pending status, I expected that deleting the contact would overrule that setting and would at least move them to 'Subscriber' or possibly even remove that user from WP?
Could you clarify the behaviour I should expect this scenario? and, does it change with just moving a contact to the Trash vs permanent delete on the Civi side?
Thanks!