You can define that user accounts of specific roles that are inactive for a specified period will be adjusted to a different user role.
Here is how you set this up for your WordPress users.
Demote inactive administrators
In this example, we want Administrator accounts that are inactive for 30 days, to be automatically changed to the Subscriber user role.
- Open the settings in WP Admin Audit
- Select the “User accounts” tab
- Enable the checkbox to auto-adjust inactive accounts
- Select all user roles in scope for the auto-adjustment.
In our example, we choose WordPress’ Administrator user role. You can of course also choose multiple roles here.
- Choose the grace period until the user role auto-adjustment should become active.
In our example, we allow inactivity periods of up until 30 days.
- Now select the user role the identified inactive administrators should be changed to.
In our example, we choose the Subscriber user role. Alternatively, the user accounts can also be deactivated when No role is selected instead.
- Make sure to save the settings
Identify inactive WordPress accounts
While the auto-adjust inactive accounts feature is powerful and fully automated, you may choose to also do some manual assessment of inactive WordPress user and admin accounts. This is where the respective User Audit functionality really shines.