Title: User role duplicated
Last modified: July 19, 2017

---

# User role duplicated

 *  Resolved [superkot](https://wordpress.org/support/users/superkot/)
 * (@superkot)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/user-role-duplicated/)
 * Hi,
    I have used the plugin once to edit user role (it was Merchant that I edited)
   to find that “customer” got duplicated. If I hover on each of “customers”, I 
   can see in the status bar that one is “Customer” (capitalized) and the other 
   is “customer”. They obviously include the same users.
 * [https://ibb.co/bTxivQ](https://ibb.co/bTxivQ)

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

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/user-role-duplicated/#post-9332244)
 * Hi,
 * What do you see at the “Select Role” drop-down list at “Users->User Role Editor”
   page?
    URE shows “Role name (role id)” there. I suppose that you can have something
   like ‘Customer (customer)’ and ‘Customer (Customer)’. Look if the 2nd one is 
   available for deletion at the ‘Delete Role’ list.
 * Let me know if you can repeat this role duplication via URE user interface.
 * MySQL string comparing is case insensitive. You can see both roles assigned to
   the same users at different role views for this reason.
    -  This reply was modified 8 years, 11 months ago by [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/).
 *  Thread Starter [superkot](https://wordpress.org/support/users/superkot/)
 * (@superkot)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/user-role-duplicated/#post-9332321)
 * They are shown as “Customer (Customer)” and “Customer (customer)” indeed. When
   I click on Delete Role, none of the two is in the list (I assume, because there
   are users).
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/user-role-duplicated/#post-9335302)
 * I suppose that 2nd role was added by code. I tried to add something similar manually
   with “User Role Editor->Add Role” but get an error message without adding a new
   role.
    The only way to fix a problem I see is to edit roles data at wp_options
   db table: manually via suitable MySQL client tool, like myPhpAdmin or similar
   or via special PHP script.
 * Read [this article](http://shinephp.com/how-to-change-wordpress-user-role-capabilities/)
   to get more information about WordPress roles record data structure.
 * You have to remove duplicated role data from the serialized PHP array value or
   write a small script to make it via PHP.
    -  This reply was modified 8 years, 11 months ago by [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/).
 *  Thread Starter [superkot](https://wordpress.org/support/users/superkot/)
 * (@superkot)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/user-role-duplicated/#post-9335464)
 * I fixed this by creating another role, moving all users inside it, deleting extra“
   customer”, then moving users back to the remaining “customer”.
 * The problem however is that the double somehow got created in the first place
   after usage or installation of URE. We did not use any code or other editors 
   related to user roles on the website, all existing roles were originating from
   the template or well-known plugins (Woocommerce, Loco Translate).
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/user-role-duplicated/#post-9335559)
 * Excellent, that you found a easy workaround. I did not think about this way.
 * Just in case if you will isolate this (repeat with known scenario, etc.), let
   me know, in order to I can fix an issue, if it’s related to URE.

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

The topic ‘User role duplicated’ is closed to new replies.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/user-role-duplicated/#post-9335559)
 * Status: resolved