---
title: "Restricting Table Access by User or Role in wpDataTables"
description: "Can I limit who sees a wpDataTable on the front-end based on the logged-in user or their role?"
url: https://help.wpdatatables.com/en/articles/24-restricting-table-access-by-user-or-role-in-wpdatatables
collection: "Advanced filtering"
updated: 2026-09-24
language: en
---

# Restricting Table Access by User or Role in wpDataTables

Can I limit who sees a wpDataTable on the front-end based on the logged-in user or their role?

### ✅ **Short Answer:**

wpDataTables does not currently include a built-in feature for restricting **table visibility on the front-end** by user or role — but it can be achieved with a simple workaround using **membership or access control plugins**.

* * *

### 🔧 **Recommended Workaround (No Coding Required):**

You can use any **membership plugin** (such as **MemberPress**, **Restrict Content Pro**, or **WP-Members**) to control visibility of **pages or sections** where your tables are embedded.

* * *

### 🪄 **Example Setup:**

1.  Create a **custom user role**, e.g., _VIP_, using a plugin like **User Role Editor**.
    
2.  Create a **dedicated page** for each user group or role.
    
3.  Embed your **wpDataTable shortcode** on that page (e.g., `[wpdatatable id=1]`).
    
4.  Use the **membership plugin** to restrict access to that page based on the user role.
    

This ensures each user sees **only the tables and content** meant for them.

* * *

### 💡 **Note:**

This is considered a **custom implementation** and is not officially supported by our team, but many users have successfully implemented it.

* * *

### 💬 **Want This as a Native Feature?**

If you'd like to see built-in support for front-end table visibility control by user or role, you can submit the idea on our **Suggestions Page**:  
👉 [https://features.wpdatatables.com](https://features.wpdatatables.com)

The more votes a feature receives, the more likely it is to be prioritized by our development team.

* * *

### 🔔 **Stay Updated:**

-   📄 [**View our Changelog**](https://wpdatatables.com/help/whats-new-changelog/)
    
-   📬 [**Subscribe to our Newsletter**](https://wpdatatables.com/newsletter/)
