A former employee's account removed, their posts kept
When someone leaves, find their account and either lower its role for now or delete it, with their posts and pages handed to a colleague.
- Difficulty
- Intermediate
- Time
- about 10 min
[Name] has left the company. Find their account on my site and tell me their role and when they joined. Delete it and give their posts and pages to [colleague's username], once I approve with my password. If I tell you I'm not ready to delete it yet, change their role to [subscriber] instead.
Already connected?
If SAR is already in your AI app, this is enough:
Delete [name]'s account and give their posts to [colleague], once I approve.
What happens
- The AI app lists the users with their roles and when they joined; emails are shortened.
- Lowering the role, if you choose that for now, waits for your approval (with your password if administrator-level access is taken) and can be undone.
- Deleting the account gives their posts and pages to the colleague you named. It cannot be undone, so it is approved in SAR with your password.
- The connected account and the last administrator are never deleted.
Approvals involved
Worked out from the tools this recipe uses.
wordpress_list_usersList usersNonewordpress_change_user_roleChange a user's roleDepends on the changewordpress_delete_userDelete a userApproval and password
What you get
No access left for someone who has gone, and their work still on the site under your colleague's name. On a multisite network they are removed from this site only.
Related recipes
- Security & backups · about 15 minAdministrators you don't recognise, found and taken down a levelList everyone who can manage your whole site, spot accounts you don't know, lower their role with your password, and send password resets where needed.
- Security & backups · about 10 minCheck your WordPress files for tamperingCompare WordPress's own files and your WordPress.org plugins with the official copies, and find out whether anything was changed or is missing.
- Security & backups · about 20 minRoles that can do more than they should, trimmed backSee every role's capabilities and who has it, spot roles that can install plugins or manage users without needing to, and remove those capabilities.
Try it on your own site
Install the plugin, add SAR to your AI app and paste the prompt. Free to start.