Title: Users Roles Settings
Last modified: August 31, 2016

---

# Users Roles Settings

 *  Resolved [rleguede](https://wordpress.org/support/users/rleguede/)
 * (@rleguede)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/users-roles-settings/)
 * Hi,
 * I’ve got an issue with “Users Roles Settings”.
    I can’t define two roles to a
   user.
 * Context : my website is a community website. So, I use bbPress plugin
    This plugin
   define a second role to a WordPress user (example, user can be an Author (wordpress)
   and a Subscriber (bbpress) )
 * I need these two roles to define a user.
 * But, when I did that, your plugin apply only the second rules and not the first
   one.
 * Example of my rules :
    – administrator|(CAS{cas_user_id} -EQ “Romane”) – bbp_keymaster
   |(CAS{cas_user_id} -EQ “Romane”)
 * So when I try to reconnect myself, I’m not Administrator of my site anymore, 
   only Administrator on forum plugin.
 * When I remove all rules, I reconnect myself and then … I’m not Administrator 
   anymore too ! Only a subscriber…
 * Can you help me with this ?
 * [https://wordpress.org/plugins/wp-cassify/](https://wordpress.org/plugins/wp-cassify/)

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

 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/users-roles-settings/#post-7340097)
 * Hi,
 * Please update to version 1.8.0. Keep me informed if it works.
    You can display
   user roles in front page with this :
 *     ```
       <?php
       						$current_user = wp_get_current_user();
       						print_r( $current_user->roles );
       					?>
       ```
   
 * I’ve replace this code :
 *     ```
       // Suscriber role is pushed by default to successfully authenticated user
       					if ( count( $roles_to_push ) == 0 ) {
       						array_push( $roles_to_push, 'subscriber' );
       					}
   
       					foreach ( $roles_to_push as $role ) {
       						WP_Cassify_Utils::wp_cassify_set_role_to_wordpress_user( $cas_user_datas[ 'cas_user_id' ], $role );
       					}
       ```
   
 * By this :
 *     ```
       // Suscriber role is pushed by default if wordpress user account has been created.
       					if ( $wordpress_user_account_created ) {
       						array_push( $roles_to_push, 'subscriber' );
       					}
   
       					foreach ( $roles_to_push as $role ) {
       						WP_Cassify_Utils::wp_cassify_add_role_to_wordpress_user( $cas_user_datas[ 'cas_user_id' ], $role );
       					}
       ```
   
 *  Thread Starter [rleguede](https://wordpress.org/support/users/rleguede/)
 * (@rleguede)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/users-roles-settings/#post-7340134)
 * Hi,
 * I update to version 1.8, everything seems all right !
 * Thank you very much !
 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/users-roles-settings/#post-7340136)
 * Ok,
 * So I close ticket.
 * Best regards.

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

The topic ‘Users Roles Settings’ is closed to new replies.

 * ![](https://ps.w.org/wp-cassify/assets/icon-256x256.png?rev=3112582)
 * [WP Cassify](https://wordpress.org/plugins/wp-cassify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cassify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cassify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cassify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cassify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cassify/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/users-roles-settings/#post-7340136)
 * Status: resolved