Title: Front End Export Users Button Error
Last modified: January 13, 2023

---

# Front End Export Users Button Error

 *  Resolved [vcugreg](https://wordpress.org/support/users/vcugreg/)
 * (@vcugreg)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/front-end-export-users-button-error/)
 * We have a member page that only “subscribers” and “admins” are able to access.
   On this page is a button using the [export-users] shortcode. It works perfectly
   for admins that navigate to this member page and click the button, but normal
   users get this error and the page doesn’t load fully:
 * “Only users who are able to create users can export them.”
 * It is specifically this shortcode causing the problem. Is there a way to allow
   any user the ability to export our user list and not just admins? It appears 
   that the only people able to export the user list are admins, currently. Thanks
   in advance!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/front-end-export-users-button-error/#post-16371883)
 * When you export users, you may see confidential data (like passwords).
 * Anyway, you can manage it using this: apply_filters( ‘acui_capability’, ‘create_users’)
 * To change the capability we manage.
 *  Thread Starter [vcugreg](https://wordpress.org/support/users/vcugreg/)
 * (@vcugreg)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/front-end-export-users-button-error/#post-16372105)
 * Thank you for the response. Could you please be very specific and tell me the
   script and where to place it on the wordpress site? I have hidden the password
   value from the excel export file (so it is safe enough for us). Thank you in 
   advance.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/front-end-export-users-button-error/#post-16372380)
 * Sorry I cannot make custom code for you… but you could add to your functions.
   php something like:
 * `add_filter( 'acui_capability', function(){ return 'here_the_capability_you_need';)`
 * You will know which capability you want to set there.
 *  Thread Starter [vcugreg](https://wordpress.org/support/users/vcugreg/)
 * (@vcugreg)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/front-end-export-users-button-error/#post-16373394)
 * Respectfully, I’m not asking you to create custom code. I just want the export
   feature you already have to allow all users to export the list. Would this not
   just require editing your current code from allowing only admins to allow all?
   Thank you for your time.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/front-end-export-users-button-error/#post-16374761)
 * When exporting users you can obtain sensitive information from all of them, therefore,
   by default and because not doing so would be a very serious security issue, only
   roles that have the ability to create users can do so. The administrator role,
   by default, has it.
 * You can read about roles and capabilities here: [https://wordpress.org/support/article/roles-and-capabilities/](https://wordpress.org/support/article/roles-and-capabilities/)
 * For that reason, only roles that have that capability can do this. Even so, knowing
   that there are specific situations where it may make sense that another type 
   of role with other capabilities, we offer that hook that I mentioned before so
   you can do what you need: acui_capability.
 * This is a filter hook, not an action one.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Front End Export Users Button Error’ is closed to new replies.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/front-end-export-users-button-error/#post-16374761)
 * Status: resolved