• Resolved nathanwright

    (@nathanwright)


    Hi Tom

    Looks like a great plugin.

    In my external mySQL database I have multiple roles and users can belong to numerous roles. How can I pass back these multiple roles to WordPress via your plugin?

    Also do you plan to release a paid premium version of this plugin?

    Thanks

    Nathan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tbenyon

    (@tbenyon)

    Hey Nathan,

    To make sure I understand you correctly – you’d like it that when a user is authenticated, they are assigned the same named role in WordPress.

    This is currently supported via role mapping. If you create those roles in WordPress, you can then use the role mapping feature to map the name of the role in the external database with the created WordPress role with the same name.

    What isn’t currently supported is creating a role in WordPress if it currently doesn’t exist. The problem with this would be, what permissions should External Login assign to this newly created role? Maybe just create a role with the same permissions as the “Unspecified role” settings role?

    Let me know your thoughts ??

    Thanks,

    Tom

    Thread Starter nathanwright

    (@nathanwright)

    Hi Tom

    Good point.

    How do I pass in the multiple role names, is it a comma separated list in the role field or can I only pass in a single role per user?

    Nathan

    Plugin Author tbenyon

    (@tbenyon)

    Hey Nathan,

    There’s a new feature that allows multiple roles from the external database to be mapped in if they are in the same field and separated by a character.

    Download the plugin and you’ll see the option in the roles section in the settings.

    You check the box for the multiple roles per user and then you can specify which character in the external database is used to separate the roles. Instructions appear when you tick the box.

    Let me know if you have any issues but also let me know if this is working for you.

    Thanks,

    Tom

    Plugin Author tbenyon

    (@tbenyon)

    Hey @nathanwright,

    I haven’t heard back from you so I’m presuming you resolved your problem.

    If you have any further questions, don’t hesitate to get back in contact.

    If the plugin is doing everything you need I’d be grateful if you could take the time to write a review.

    Thanks,

    Tom

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘multiple roles’ is closed to new replies.