Title: Role based on integer value
Last modified: May 13, 2019

---

# Role based on integer value

 *  Resolved [rapideyemovement](https://wordpress.org/support/users/rapideyemovement/)
 * (@rapideyemovement)
 * [7 years ago](https://wordpress.org/support/topic/role-based-on-integer-value/)
 * I want to replace abandoned for a long time “External Database Authentication
   Reloaded” with “External Login”. The only thing that seems to be missing is role
   selection based on integer value of some record field. In the current plugin 
   it’s possible to set up like that: user is an Administrator if some field equals
   to 1, otherwise it is a normal user.
    As far as I can see it can’t be setup like
   that in “External login”, right? If it’s absolutely necessarry it’s possible 
   to change the original DB layout, but I would like to avoid that.

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

 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [7 years ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11526293)
 * Hey [@rapideyemovement](https://wordpress.org/support/users/rapideyemovement/),
 * If I understand you correctly this functionality is supported.
    It’s in the role
   settings section.
 * Image below:
    [https://ibb.co/PgwwQ08](https://ibb.co/PgwwQ08)
 * If this solves your problem and this works for you I’d be really grateful if 
   you could take the time to write a review.
 * Thanks,
 * Tom
 *  Thread Starter [rapideyemovement](https://wordpress.org/support/users/rapideyemovement/)
 * (@rapideyemovement)
 * [7 years ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11526817)
 * No, as far as I understand it, this is something different. Correct me if I’m
   wrong.
 * For example: let’s assume there is a integer field called “status”. Let’s say:
   0 means disabled, 1 means active, 2 means suspended. How do I set up Extrenal
   Login to pass only the users with status==1? Yes, this is a bit different than
   the situation I described in the first post, but I’ve just realized that the 
   situation is slightly different to what I thought.
 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [7 years ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11526890)
 * Hey [@rapideyemovement](https://wordpress.org/support/users/rapideyemovement/),
 * Apologies for not understanding first time.
 * I presume my new feature may solve your problem. It allows you exclude certain
   users based on a field in the database.
 * Settings example here:
    [https://ibb.co/jVNDWKf](https://ibb.co/jVNDWKf)
 * I class it as a Beta feature as it’s new but mostly because of how the settings
   page works for it. It was quite a large re-write.
 * If you try it and it does work I’d appreciate the feedback so I can use that 
   as evidence to strip out the “Beta” label.
 * If you have any more questions don’t hesitate to get back in contact.
 * Thanks,
 * Tom
 *  Thread Starter [rapideyemovement](https://wordpress.org/support/users/rapideyemovement/)
 * (@rapideyemovement)
 * [7 years ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11528467)
 * That example looks exactly like what I needed. Thanks!
    I’ll try to test it as
   soon as possible and let you know how it worked for me.
 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [7 years ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11528481)
 * [@rapideyemovement](https://wordpress.org/support/users/rapideyemovement/) Looking
   forward to hearing from you 🙂
 *  Thread Starter [rapideyemovement](https://wordpress.org/support/users/rapideyemovement/)
 * (@rapideyemovement)
 * [7 years ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11532779)
 * Am I missing something? Where am I supposed to find the plugin with the recent
   changes you’ve mentioned? [https://plugins.trac.wordpress.org/browser/external-login/](https://plugins.trac.wordpress.org/browser/external-login/)
   doesen’t seem to be that place.
 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [7 years ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11573987)
 * Hey,
 * Apologies for the delayed reply.
 * You can download the plugin from the main page.
 * [https://wordpress.org/plugins/external-login/](https://wordpress.org/plugins/external-login/)
 * The feature we discussed has been available since version 1.5.0.
 * Hope this helps.
 * Tom
 *  Thread Starter [rapideyemovement](https://wordpress.org/support/users/rapideyemovement/)
 * (@rapideyemovement)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11632180)
 * Well, it took me quite long to finally go back to it. But after some scratching
   head I managed to set it up properly and the way I wanted – at least it seems
   so at the moment 🙂
    I also didn’t realise at first that the feature we’ve been
   talking about is already present for some time. Anyway, thanks for the plugin!
 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11632988)
 * Hey [@rapideyemovement](https://wordpress.org/support/users/rapideyemovement/),
 * Really glad it’s all working 😊.
 * I’d really appreciate it if you could take the time to write a one line review:
   
   [https://wordpress.org/support/plugin/external-login/reviews/#new-post](https://wordpress.org/support/plugin/external-login/reviews/#new-post)
 * Thanks,
 * Ton

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

The topic ‘Role based on integer value’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-login_fbebd6.svg)
 * [External Login](https://wordpress.org/plugins/external-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-login/)
 * [Active Topics](https://wordpress.org/support/plugin/external-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-login/reviews/)

## Tags

 * [role](https://wordpress.org/support/topic-tag/role/)

 * 9 replies
 * 2 participants
 * Last reply from: [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/role-based-on-integer-value/#post-11632988)
 * Status: resolved