How to Grant and Manage User Access to CFDB7 Form Submissions
Content
One of the most common questions about the 'Contact Form 7 Database Addon – CFDB7' plugin is how to control which users can see form submissions in the WordPress dashboard. By default, the plugin only grants access to users with the Administrator role. This guide explains the standard methods for granting access to other user roles like Editors or Contributors, as well as the plugin's limitations for more advanced permission scenarios.
Why This Happens
The plugin uses a custom WordPress capability called cfdb7_access to control access to its dashboard menu. By default, this capability is only granted to Administrator-level users. This is a security measure to prevent unauthorized access to sensitive form submission data.
How to Grant Access to Other User Roles
There are two primary methods to grant the necessary capability to other user roles.
Method 1: Using a Plugin (Recommended for Most Users)
The simplest way to manage capabilities is by using a dedicated user role editor plugin.
- Install and activate the User Role Editor plugin.
- Navigate to Users → User Role Editor in your WordPress admin.
- Select the role you want to edit (e.g., 'Editor', 'Author') from the drop-down menu.
- In the list of capabilities, find and check the box for
cfdb7_access. - Click the 'Update' button to save your changes.
Note: Some users have reported that the menu item might not appear immediately. If this happens, try logging out and back in, or manually visiting your-site.com/wp-admin/admin.php?page=cfdb7-list.php to trigger the menu to appear.
Method 2: Adding Code to functions.php
For developers comfortable with code, you can add the capability directly by placing the following code in your theme's functions.php file.
function add_cfdb7_access_to_editor() {
$role = get_role('editor'); // Replace 'editor' with any other role slug
if ($role && !$role->has_cap('cfdb7_access')) {
$role->add_cap('cfdb7_access');
}
}
add_action('init', 'add_cfdb7_access_to_editor');
Understanding the Limitations
It is important to understand what the cfdb7_access capability does and does not do.
- What it DOES: This capability grants a user role access to view all form submissions listed in the CFDB7 admin area.
- What it does NOT do: The native plugin does not have functionality to:
- Restrict access to submissions from only specific forms.
- Allow users to only see their own submissions.
- Let users edit existing form submissions.
- Display a notification badge for unread submissions.
- Show submission data on the front-end of the site.
Based on the sample support threads, the 'Contact Form 7 Database Addon – CFDB7' team has consistently stated that achieving any of the above advanced functionalities requires custom development work, as they are beyond the scope of the free plugin's features.
Troubleshooting Common Issues
- Menu Not Appearing: If you've added the capability but the CFDB7 menu still isn't visible, try clearing your browser cache and WordPress cache plugins. Manually navigating to the page URL can sometimes force the menu to appear.
- Can't See Submission Details: Some users report that certain admin themes or menu customization plugins can interfere with viewing the details of a single submission. Try temporarily switching to a default WordPress theme (like Twenty Twenty-Four) and deactivating other plugins to test for a conflict.
By following these steps, you should be able to successfully grant dashboard access to CFDB7 data for various user roles. For more complex permission needs, custom coding or a different solution may be necessary.
Related Support Threads Support
-
Hide entries for contibutor Rolehttps://wordpress.org/support/topic/hide-entries-for-contibutor-role/
-
edit form submissionshttps://wordpress.org/support/topic/edit-form-submissions/
-
Non Logged In Users Can Access PDFs?https://wordpress.org/support/topic/non-logged-in-users-can-access-pdfs/
-
Editor userhttps://wordpress.org/support/topic/editor-user/
-
Visibility of Contact-Forms in Dashboard for different membershttps://wordpress.org/support/topic/visibility-of-contact-forms-in-dashboard-for-different-members/
-
How to allow users so they can edit their own form submissions?https://wordpress.org/support/topic/how-to-allow-users-so-they-can-edit-their-own-form-submissions/
-
Restrict User Data Displayhttps://wordpress.org/support/topic/restrict-user-data-display/
-
Make a custom admin field “aproved/unnaproved”https://wordpress.org/support/topic/make-a-custom-admin-field-aproved-unnaproved/
-
Allow user in editor role to view – Not Workinghttps://wordpress.org/support/topic/allow-user-in-editor-role-to-view-not-working/
-
Save forms to user that submitted ithttps://wordpress.org/support/topic/save-forms-to-user-that-submitted-it/
-
Notificationhttps://wordpress.org/support/topic/notification-45/
-
How do I grant access to editors?https://wordpress.org/support/topic/how-do-i-grant-access-to-editors/
-
Is it possible to give access to Editors?https://wordpress.org/support/topic/is-it-possible-to-give-access-to-editors/
-
Allow Editor Role To See Contact Form 7 Databasehttps://wordpress.org/support/topic/allow-editor-role-to-see-contact-form-7-database/
-
Restrict access to certian submissions based on user idhttps://wordpress.org/support/topic/restrict-access-to-certian-submissions-based-on-user-id/
-
Access to formdata in the front endhttps://wordpress.org/support/topic/access-to-formdata-in-the-front-end/
-
Permissions to editorhttps://wordpress.org/support/topic/permissions-to-editor/
-
Can I set author can view contact form?https://wordpress.org/support/topic/can-i-set-author-can-view-contact-form/
-
Enable only on specified formshttps://wordpress.org/support/topic/enable-only-on-specified-forms/
-
Allow user in editor role to viewhttps://wordpress.org/support/topic/allow-user-in-editor-role-to-view/