WordPress User Roles and Permissions Testing Guide

WordPress websites often have more than one type of user.

A simple website may use only:

  • Administrator;
  • Editor.

A larger WordPress site may also include:

  • Authors;
  • Contributors;
  • Subscribers;
  • WooCommerce Customers;
  • Shop Managers;
  • membership roles;
  • custom plugin roles.

Each role should be able to access exactly what it needs — and nothing more.

That makes WordPress user roles and permissions an important part of website QA.

A website may appear completely functional while still allowing the wrong user to:

  • edit content;
  • publish posts;
  • upload files;
  • access private pages;
  • view another customer’s data;
  • manage users;
  • change settings;
  • install plugins.

These issues can create both operational and security risks.

The central rule is:

Do not test only what a role can see. Test what the role can actually access and do.

For the broader WordPress testing process, see WordPress QA Checklist.

What Should WordPress Permission Testing Verify?

A strong WordPress permission test should answer two questions:

Can authorized users perform the actions they need?

and:

Are unauthorized users prevented from performing actions they should not have?

This means testing both:

positive access

and:

negative access

For example:

Author → Edit Own Post = Allowed

Author → Edit Another Author’s Post = Denied

Both results matter.

A permission system is not correct if it blocks legitimate users.

It is also not correct if restricted users can bypass the intended controls.

Understand the Default WordPress User Roles

WordPress includes several standard roles.

Their exact capabilities can be modified by plugins or custom code, so QA should always test the actual website configuration.

Typical roles include:

RoleTypical Responsibility
AdministratorFull site administration
EditorManage and publish site content
AuthorManage and publish own posts
ContributorCreate and edit own unpublished posts
SubscriberManage own profile with minimal access

These are useful starting points, not guarantees.

Plugins may add or remove capabilities.

Administrator

Administrators typically have broad access to WordPress.

They can usually manage:

  • users;
  • posts and pages;
  • plugins;
  • themes;
  • site settings.

Because Administrator access is so broad, testing only with an Administrator account can hide serious permission defects.

Many authorization bugs appear only when testing lower-level roles.

Editor

Editors typically manage content across multiple users.

They may be able to:

  • create posts;
  • edit posts;
  • publish posts;
  • edit content created by other users.

They should not automatically receive full system-administration capabilities.

Author

Authors usually manage their own published content.

Typical capabilities include:

  • create posts;
  • edit own posts;
  • publish own posts;
  • upload media.

They should normally not edit another Author’s content unless the site intentionally changes the default model.

Contributor

Contributors usually have more limited editorial access.

They may:

  • create posts;
  • edit their own unpublished posts.

They normally cannot publish independently.

This makes Contributor useful for testing:

draft → review → publish

workflows.

Subscriber

Subscribers typically have minimal administrative access.

They may usually:

  • log in;
  • manage their own profile.

They should not unexpectedly gain access to content-management or administration functions.

Start With a Permission Matrix

Before testing, document what each role should be allowed to do.

For example:

ActionAdminEditorAuthorContributorSubscriber
View DashboardYesYesYesYesLimited
Create PostYesYesYesYesNo
Publish PostYesYesYesNoNo
Edit Own PostsYesYesYesYesNo
Edit Other Users’ PostsYesYesNoNoNo
Upload MediaYesYesYesDependsNo
Manage UsersYesNoNoNoNo
Manage PluginsYesNoNoNoNo
Change Site SettingsYesNoNoNoNo

The exact matrix depends on the website.

What matters is that QA tests against:

documented expectations

rather than assumptions about what WordPress normally does.

Include Custom Roles in the Matrix

Many real WordPress websites do not use only the built-in roles.

You may also have:

  • Customer;
  • Shop Manager;
  • Free Member;
  • Premium Member;
  • Instructor;
  • Student;
  • Event Manager;
  • custom business roles.

Add these to the same matrix.

This turns permission testing into a repeatable QA process instead of a collection of ad-hoc checks.

Create Separate Test Accounts

Create at least one QA account for every important role.

Avoid switching one account repeatedly between roles during normal test execution.

Separate accounts make it easier to test:

  • ownership;
  • account state;
  • permissions;
  • active sessions;
  • user-specific data.

Using separate browser profiles or private sessions can also help keep multiple roles open at the same time.

Test Login for Every Important Role

Verify:

Login → Dashboard → Available Functions

For each role, check that:

  • login succeeds;
  • the correct account loads;
  • the correct role is applied;
  • expected dashboard functions are available.

For broader authentication coverage, see How to Test Login, Signup and Password Reset Flows.

Test Positive Access

Permission testing should not focus only on blocking users.

Authorized users must also be able to complete their intended work.

For example, if an Author should publish their own posts, verify:

  1. Author logs in.
  2. Creates a post.
  3. Adds content.
  4. Publishes it.
  5. Edits it afterward.

If the intended action is blocked, that is also a permission defect.

Test Negative Access

Negative testing asks whether a user can perform actions outside their role.

Examples include:

  • Author editing another user’s post;
  • Subscriber opening content-management screens;
  • Editor installing plugins;
  • Customer opening another customer’s order.

These scenarios are often more important than simply verifying that menu items look correct.

Hidden UI Does Not Prove Permission Enforcement

This is one of the most important principles in WordPress permission testing.

Suppose an Author cannot see:

Plugins

in the WordPress menu.

That does not automatically prove plugin management is protected.

QA should also verify that the restricted user cannot reach the underlying functionality through a known direct URL.

The difference is:

Hidden UI ≠ Enforced Permission

For the broader authorization principle, see Authentication and Permission Sanity Testing for Websites.

Test Direct URL Access

Where appropriate, verify restricted functionality through direct routes.

Examples include:

  • edit screens;
  • settings screens;
  • plugin pages;
  • user-management screens;
  • custom plugin pages.

Expected behavior may include:

  • permission denied;
  • login required;
  • redirect;
  • unavailable page.

The exact response depends on the product.

The important result is:

the restricted action cannot be performed

Test Content Permissions

Content is one of the core WordPress permission areas.

Depending on the project, verify:

  • create;
  • edit;
  • publish;
  • delete;
  • restore;
  • manage other users’ content.

Test both normal UI navigation and direct access where appropriate.

Test Editing Own Content

Create a post using a restricted role.

Then verify that the same user can edit their own content if the role permits it.

Check:

  • Posts list;
  • edit screen;
  • save/update;
  • publishing state.

A strict permission model should still allow legitimate work.

Test Editing Other Users’ Content

This is a high-value negative test.

Example:

  1. Create Post A as Author A.
  2. Log in as Author B.
  3. Attempt to open Post A.
  4. Attempt to edit it.
  5. Attempt to save changes.

If Authors should manage only their own content, Author B should be denied.

Do not test this only through the Posts list.

Check direct edit access too.

Test Publishing Permissions

Publishing often distinguishes roles.

For a Contributor, verify whether:

  • a draft can be created;
  • a draft can be saved;
  • Publish is unavailable;
  • content can be submitted for review where supported.

For Author or Editor roles, verify publishing according to the intended workflow.

Test Delete Permissions

Deletion may follow different rules from editing.

Check whether a role can:

  • move its own content to Trash;
  • delete another user’s content;
  • restore content;
  • permanently delete content.

Do not assume:

Edit permission = Delete permission

Test Pages Separately From Posts

WordPress capabilities may behave differently for:

  • posts;
  • pages;
  • custom post types.

If Pages are important to the site, test them independently.

A successful Post permission test does not automatically prove Page permissions are correct.

Test Custom Post Types

Themes and plugins may add content types such as:

  • Products;
  • Events;
  • Listings;
  • Courses;
  • Testimonials.

These can use different capability rules.

For each important custom post type, consider testing:

  • list access;
  • create;
  • edit;
  • publish;
  • delete;
  • ownership.

Custom post types are a common source of inconsistent permission behavior.

Test Media Permissions

Media permissions can affect both editorial workflow and privacy.

Verify which roles can:

  • upload media;
  • browse Media Library;
  • edit metadata;
  • delete files.

Also consider whether users can access media uploaded by other users.

Do not assume media permissions behave exactly like post permissions.

For broader media QA, see How to Test WordPress Forms, Media and Downloads.

Test Restricted Downloads

Permission testing should also cover protected downloadable content.

Examples include:

  • premium PDFs;
  • customer documents;
  • private reports;
  • member downloads.

If a file should be available only to authorized users, verify that users cannot bypass the protection through a direct download route.

Test User Management Permissions

User management is a high-risk administrative area.

Verify which roles can access:

  • Users list;
  • Add New User;
  • Edit User;
  • Delete User;
  • Change Role.

Role-changing functionality deserves particular attention because it can create privilege escalation.

A restricted user should not be able to give themselves more access.

Test WordPress Settings Access

Lower-level roles should normally not have unrestricted access to system settings.

Depending on the site, verify access to areas such as:

  • General Settings;
  • Reading;
  • Discussion;
  • Permalinks.

Again, check direct access where appropriate.

Test Plugin Management

Plugin management can significantly change the website.

Verify only authorized roles can:

  • install plugins;
  • activate plugins;
  • deactivate plugins;
  • delete plugins.

A restricted role unexpectedly gaining plugin management can create serious risk.

Test Theme and Appearance Permissions

Depending on the site configuration, test access to:

  • Themes;
  • Site Editor;
  • Customizer;
  • Widgets;
  • Menus.

Capabilities can vary depending on:

  • WordPress version;
  • theme type;
  • plugins;
  • custom code.

Test the actual site rather than relying on assumptions.

Test Custom Admin Pages

Custom plugins frequently create their own screens under /wp-admin/.

These pages deserve explicit permission testing.

Common defects include:

  • menu hidden but page accessible;
  • all authenticated users allowed;
  • wrong capability checked;
  • actions accessible to a lower role.

These issues are easy to miss when QA uses only Administrator.

Test Plugin-Specific Roles and Capabilities

Plugins may introduce entirely new permission models.

Examples include:

  • membership plugins;
  • LMS platforms;
  • directories;
  • event systems;
  • e-commerce plugins.

The capabilities may not map neatly to:

  • Administrator;
  • Editor;
  • Author;
  • Contributor;
  • Subscriber.

Build specific tests for important plugin functionality.

Test WooCommerce Roles

WooCommerce commonly adds:

Customer

and:

Shop Manager

roles.

A Shop Manager may need access to:

  • orders;
  • products;
  • coupons;
  • customers;
  • reports.

But that does not necessarily mean they should receive full WordPress Administrator privileges.

Test the intended boundary.

Test WooCommerce Customer Access

A Customer should normally be able to manage their own:

  • orders;
  • addresses;
  • account details.

They should not access another customer’s information.

For checkout/account-state coverage, see Guest Checkout vs Account Checkout.

Test Order Ownership

Use at least two customer accounts.

Verify:

Customer A → Order A = Allowed

and:

Customer A → Order B = Denied

Check through:

  • normal account navigation;
  • direct order URLs where relevant.

This is a critical user-specific data test.

Test Membership Roles

Membership websites may use roles such as:

  • Free Member;
  • Premium Member;
  • Instructor;
  • Student.

These may control access to:

  • premium pages;
  • courses;
  • downloads;
  • member dashboards;
  • account features.

Build a dedicated permission matrix for these roles.

For example:

FeatureFree MemberPremium Member
Free ArticlesYesYes
Premium ArticlesNoYes
Premium DownloadsNoYes
Account DashboardYesYes

Then test both allowed and denied access.

Test Protected Front-End Content

WordPress permission testing should not stop at /wp-admin/.

Roles may also control front-end access to:

  • dashboards;
  • premium content;
  • customer areas;
  • private downloads;
  • account pages.

Verify both:

navigation visibility

and:

direct URL enforcement

Test Logged-Out Users

For every important protected area, also test without authentication.

A useful baseline is:

Logged Out → Protected URL → Login Required or Access Denied

Logged-out users should not accidentally see private content.

Test Search Results for Restricted Content

Search can expose content that normal navigation hides.

For sites with restricted information, verify whether unauthorized users can discover:

  • private posts;
  • premium pages;
  • restricted products;
  • protected content.

Search results should follow the same access rules as the underlying content.

Test User-Specific Data

Role permission is only one layer of authorization.

The website may correctly recognize:

Customer

while still showing the wrong customer’s data.

Pages may contain:

  • name;
  • membership status;
  • orders;
  • private documents;
  • account information.

Always verify that the data belongs to the currently authenticated user.

Test REST API and AJAX-Driven Features Where Relevant

Modern WordPress applications may load or modify data through:

  • REST API;
  • AJAX;
  • JavaScript-driven interfaces.

Routine QA does not need to become penetration testing.

But if permission-sensitive product functionality depends on these mechanisms, verify that the normal role restrictions still work.

A hidden button is not enough if the underlying action can still be completed by a restricted user.

Test Role Changes

Permissions can change while a user account already exists.

Example:

Editor → Subscriber

After the change, verify:

  • navigation;
  • direct URLs;
  • content actions;
  • protected front-end areas.

The user’s access should match the new role.

Test Active Sessions After Role Changes

This is an especially useful edge case.

Example:

  1. User logs in as Editor.
  2. Administrator changes that user to Subscriber.
  3. Return to the Editor’s existing browser session.
  4. Attempt an Editor-only action.

Verify that old permissions do not remain active longer than intended.

This is particularly important when the site uses:

  • custom role plugins;
  • object caching;
  • custom authentication logic.

Test User Suspension or Deactivation

Some plugins support:

  • suspended users;
  • disabled accounts;
  • inactive status.

If used, verify that a suspended user cannot continue accessing protected functionality unexpectedly.

Test Logout and Browser History

After logout, a restricted page may remain visually visible in browser history.

The important question is whether the user can still:

  • refresh;
  • navigate;
  • perform protected actions.

Authentication and authorization should be enforced again.

Test Multiple Tabs

Another useful state test:

  1. Open protected WordPress functionality in two tabs.
  2. Change the user’s role from another session.
  3. Return to the old tab.
  4. Attempt an action.

Stale UI should not allow unauthorized operations.

Consider Caching

WordPress sites may use:

  • page cache;
  • object cache;
  • CDN caching.

Permission changes should not leave private information incorrectly visible through stale cache.

This is especially important for:

  • membership websites;
  • account dashboards;
  • customer-specific content.

Test Access-Denied States

When access is denied, the user should receive reasonable feedback.

Examples may include:

  • permission denied;
  • login required;
  • page unavailable;
  • redirect to an appropriate page.

Avoid confusing blank screens or unrelated errors where a clearer state is possible.

Prioritize High-Risk Permissions

Not every capability requires the same testing depth.

High-risk areas often include:

  • user management;
  • plugin installation;
  • settings;
  • publishing;
  • billing;
  • private customer data;
  • restricted downloads;
  • role changes.

Prioritize the boundaries where incorrect access could create the greatest impact.

For a broader methodology, see Risk-Based Testing.

Example WordPress Permission Bug

Title: Author can edit another user’s published post

Role: Author

Steps to Reproduce:

  1. Log in as Author A.
  2. Open the edit URL for a post created by Author B.
  3. Change the title.
  4. Click Update.

Expected Result:
Author A should not be able to edit Author B’s post.

Actual Result:
The post can be modified and saved successfully.

This clearly identifies:

  • affected role;
  • protected action;
  • ownership boundary;
  • expected behavior.

For a broader defect structure, see How to Write a Good Bug Report.

WordPress Roles and Permissions QA Checklist

Role Setup

  • All important standard roles identified.
  • Custom plugin roles identified.
  • WooCommerce roles identified where relevant.
  • Membership roles identified.
  • Permission matrix documented.
  • Separate test accounts created.

Authentication

  • Each test role can log in.
  • Correct role is applied.
  • Logged-out users cannot access protected areas.
  • Logout removes protected access.

Content

  • Create permissions correct.
  • Edit-own permissions correct.
  • Edit-other permissions correct.
  • Publish permissions correct.
  • Delete permissions correct.
  • Pages tested where relevant.
  • Custom post types tested.

Media

  • Upload permissions correct.
  • Media Library access correct.
  • Other-user media behavior tested.
  • Delete permissions correct.
  • Restricted downloads protected.

Administration

  • User management correctly restricted.
  • Role-changing access restricted.
  • Plugin management restricted.
  • Theme/Appearance access correct.
  • Settings access correct.
  • Direct admin URLs protected.
  • Custom admin pages protected.

Custom Functionality

  • Plugin-specific permissions tested.
  • WooCommerce roles tested.
  • Membership roles tested.
  • Front-end protected content tested.
  • Search does not expose restricted content.
  • User-specific data belongs to the correct user.

Session and State

  • Role changes take effect.
  • Existing sessions handled correctly.
  • Suspended users blocked where applicable.
  • Multiple-tab behavior tested.
  • Logout/history behavior checked.
  • Caching does not expose restricted content.

Regression

  • Plugin permission changes retested.
  • Role-management changes retested.
  • WordPress updates considered.
  • Restricted roles included in regression.

Common Mistake: Testing Only Administrator

Administrator access tells you very little about whether restrictions work.

Always test representative lower-level roles.

Common Mistake: Checking Only Menu Visibility

A hidden menu item is not real access control.

Test:

UI visibility + direct access + actual action

where appropriate.

Common Mistake: Assuming WordPress Defaults Still Apply

Plugins and custom code can modify capabilities.

The actual website configuration is the source of truth.

Common Mistake: Ignoring Custom Post Types

Products, listings, events and courses may have their own capability model.

Include important custom content types in the permission matrix.

Common Mistake: Forgetting Front-End Permissions

Not all authorization lives in WordPress admin.

Test:

  • member pages;
  • account areas;
  • private downloads;
  • premium content;
  • user-specific data.

Common Mistake: Testing Only Roles, Not Ownership

Two users can have the same role but still need access to different records.

For example:

Customer A must not see Customer B’s order.

Role testing and record ownership testing are related but distinct.

Common Mistake: No Regression After Permission Changes

Changing one capability may affect several areas simultaneously.

After permission-related changes, consider regression across:

  • navigation;
  • direct URLs;
  • content actions;
  • account data;
  • protected front-end pages.

Test Permissions After Plugin Updates

Permissions may change unexpectedly after updates to:

  • membership plugins;
  • WooCommerce;
  • role-management plugins;
  • custom plugins.

After relevant updates, include role regression.

For the broader WordPress update workflow, see How to Test a WordPress Website After Plugin Updates.

Include Permissions in WordPress Regression Testing

A small role matrix can provide valuable regression coverage.

Prioritize the actions with the highest risk.

For example:

RoleRegression Check
AdministratorUser/plugin management
EditorEdit/publish other users’ content
AuthorOwn vs other content
SubscriberRestricted admin access
CustomerOwn order vs another customer’s order

For the broader regression framework, see WordPress Regression Testing.

A Practical WordPress Permission Testing Workflow

Step 1 — Identify Roles

List:

  • standard roles;
  • WooCommerce roles;
  • membership roles;
  • custom plugin roles.

Step 2 — Build the Permission Matrix

Define what each role should:

see + access + do

Step 3 — Create Test Accounts

Use separate accounts for important roles and ownership scenarios.

Step 4 — Test Positive Access

Verify authorized users can complete required tasks.

Step 5 — Test Negative Access

Verify restricted users cannot perform unauthorized actions.

Step 6 — Test Direct URLs

Do not rely only on hidden navigation.

Step 7 — Test Ownership

Verify users cannot access another user’s protected records.

Step 8 — Test Custom WordPress Functionality

Include:

  • plugins;
  • custom post types;
  • WooCommerce;
  • memberships.

Step 9 — Test Role and Session Changes

Verify access updates correctly when permissions change.

Step 10 — Run Regression

Retest the highest-risk boundaries after:

  • plugin updates;
  • role changes;
  • custom-code changes;
  • major WordPress changes.

Build Permission Testing Into WordPress QA

A mature WordPress permission workflow can look like:

Role Matrix → Test Accounts → Positive Access → Negative Access → Direct URL Checks → Ownership Checks → Custom Plugin Permissions → Session Changes → Regression

This is much stronger than simply logging in as Administrator and checking whether the site appears to work.

For teams that need structured WordPress QA checklists, defect tracking, regression, permission testing and release-readiness workflows, Qualavo QA Professional provides a broader website QA framework.

Final Thoughts

WordPress user roles and permissions testing should verify two things:

Authorized users can do what they need.

and:

Unauthorized users cannot do more than they should.

Start with the standard WordPress roles:

  • Administrator;
  • Editor;
  • Author;
  • Contributor;
  • Subscriber.

Then include relevant:

  • WooCommerce roles;
  • membership roles;
  • custom plugin roles.

Build a permission matrix.

Create separate test accounts.

Test:

  • visible UI;
  • direct URLs;
  • own vs other users’ content;
  • custom post types;
  • administrative functions;
  • front-end protected content;
  • user-specific data;
  • role changes;
  • active sessions.

The most important rule is:

Never assume that hiding a menu item means the underlying function is protected.

Good WordPress permission QA verifies the system from both directions:

what a user should be able to do

and:

what they must be prevented from doing

That is what turns a WordPress role configuration into an access-control model you can actually trust.

Similar Posts