In previous recipes, we discussed the importance of user roles and capabilities to manage different levels of access. The administrator of the site usually assigns these permissions to existing and new users. Verifying assigned permissions and how users access the content and features is one of the main challenges for an administrator.
The process of login with different types of user accounts and verifying permission is a time-consuming task. As a solution, we need the ability to switch to a different user account, verify permissions, and switch back to the original account. The user-switching feature provided in third-party plugins allows us to check different users without needing to log in manually to each account.
In this recipe, we are going to use a free plugin to switch between user accounts, and view and execute tasks as different users.
...