User Toolkit

plugin banner

The missing user tools and activity data that you need and don't have by default.

Author:Deryck OƱate (profile at wordpress.org)
WordPress version required:5.9.5
WordPress version tested:6.6.2
Plugin version:1.2.4
Added to WordPress repository:10-11-2022
Last updated:28-10-2024
Rating, %:100
Rated by:4
Plugin URI:https://deryckoe.com/user-toolkit
Total downloads:2 374
Active installs:100+
plugin download
Click to start download

User Tools adds missing features to user management, such as basic user activities, including last login, registration dates and user switch from the User administration screen. You can deactivate users without deleting them, allowing you to maintain your ownership of past user activity and content.

SECURITY

Disabled user

Your own user or the first created used cannot be disabled. Disabled user will not lost data or be deleted under any circumstances.

User switching

Only users with the ability to edit other users can switch user accounts. Unless you create new roles with this capabilities, this is only Administrators on single site installations, and Super Admins on Multisite installations.
Passwords are not (and cannot be) revealed.
Uses the cookie authentication system in WordPress for user switching.
Implements the nonce security system in WordPress, meaning only those who intend to switch users can switch.
Full support for user session validation where appropriate.
Full support for administration over SSL (if applicable).

REST API Support

The field last_login is included as a result in endpoint wp/v2/users/.
Filtering the endpoint wp/v2/users/ using parameter last_login is also supported.

USAGE

Disable user

  1. Visit the Users menu in WordPress and you will see a enable/disable switch in the list of each user.
  2. Click on the “Activate” switch to disable (gray) or to enable (blue).
  3. Visit every user profile and check/uncheck “Activate user login” to enable/disabled the user.

Switch user

  1. Visit the Users menu in WordPress and you will see a “Switch to” link in the list of each user.
  2. Visit every user profile and click on the “Switch to {user}” to switch to the user.
  3. You will be able to switch back using the message that will appear in every admin screen.
  4. You will be able to switch back using the “Switch back to {user}” located in the User menu in the admin bar.
  5. If the user you switched to does not have access to the admin screens you will be able to switch back using the link located in the right bottom corner of the screen.

User Columns

  1. Visit the Users menu in WordPress and you will see a “Last Login”, “Registered” and “ID” columns by default in the list of each user.
  2. Disable all or any column clicking “Screen Options” on the right top corner of the screen.

Retrieve Last Login info using REST API

  1. Get last_login field with ISO 8601 form on endpoint wp/v2/users/
  2. Filter using parameter last_login using the following options wp/v2/users/?last_login=FROM,[TO:optional] using ISO 8601 or Y-m-d format.

PRIVACY STATEMENT

This plugin makes use of a single browser cookie in order to allow users to switch between accounts. The cookie contains only a secure reference hash and does not store any personally identifiable information (PII). The actual user data is stored securely on the server using WordPress transients.

The cookie name is: wp_usrtk_user_switch_ref

This implementation ensures that no user data or PII is exposed in the browser cookies, making it more secure and privacy-friendly. The cookie is set with HTTP-only flag, secure flag (when HTTPS is in use), and SameSite=Strict for enhanced security. The cookie expires after 24 hours or when the user switches back to their original account.

How can I report security bugs?

You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. Report a security vulnerability.


Screenshots
FAQ
ChangeLog