We have a PublishPress customer who also uses the Gravity Forms plugin. They asked us if it was possible to create a user who can do nothing in WordPress, except for edit form entries in Gravity Forms.
Yes, this is possible, and this tutorial will show you how.
You will need the PublishPress Capabilities plugin installed. We will create new user role called “Gravity Forms” and give them access to Gravity Forms entries. There's a more advanced version of this tutorial available for sites also using WooCommerce.
Step #1. Create a New User Role
- Go to the Capabilities > Roles your WordPress admin menu.
- Copy the subscriber role.
- Enter the role name as “Gravity Forms”.
- Click “Create Role”.
Step #2. Add the Gravity Forms Permission
We're now going to add a new permission to give this role access to Gravity Forms entries.
- Find the “Add a New Capability” box in the right side
- Type “gravityforms_view_entries”.
- Click “Add to role”.
- Scroll down and make sure the box is checked for this permission:
Step #3. Create and Test the User
Our final step is to create a user for our new role:
- Go to the “Users” area in your WordPress admin menu.
- Create a new user in the “Gravity Forms” role.
When you login as your new user, this image shows what you will see. The user will have very limited access, but they will be able to view Gravity Forms entries:
It is possible to expand on this basic set of permissions. We used “gravityforms_view_entries” but the Gravity Forms documentation has more permissions you can give to these users.
For example, you can repeat Step #2 and add “gravityforms_export_entries”. This would allow user to export the entries. Or you could add “gravityforms_edit_entries” and that would allow them to edit the entries.
PublishPress works great with Gravity Forms
Join PublishPress today and you'll get powerful publishing and permissions plugins to improve your WordPress site.