Use the Masquerade Module to Test Drupal Roles

masquerade

If you have a large Drupal site, you may have a large number of roles and users.

  • How do you know if a role is set up correct?
  • How you know if a user has the correct permissions?

Yes, you can create fake accounts for each user role, but that becomes very cumbersome if you have more than a couple of roles.

Yes, you can ask the user for their password, or reset if for them, but that’s a painful process.

The solution is the Masquerade module which allows you to easily browse the site through the eyes of any user you choose:

Author

  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

    View all posts
0 0 votes
Article Rating
Subscribe
Notify of
guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
benj
benj
7 years ago

Alternatively if you want to test a Drupal role that has no existing user you can use this module (which is based on Masquerade itself) [url=https://www.drupal.org/project/masquerade_as_role]https://www.drupal.org/proj…[/url]

1
0
Would love your thoughts, please comment.x
()
x