• Hi,

    A client of mine wanted to add the possibility to log in to wordpress with office 365 accounts so we used this plugin and it worked great.

    He now wants us to use this plugin again but for a site with already existing wordpress accounts. Those wordpress accounts were created normally and use the o365 email to log in, but do not have the email as the username.

    I was wondering if there was way to link the already existing wordpress accounts and allow those accounts to be logged into when we use Log in with office365 feature. The reason behind that is that this is a learning site and each account is associated to how far they are in the lessons. If there is an extension or something we can do please let me know. Thanks you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marco van Wieren

    (@wpo365)

    Hi @mathieugev

    The plugin not only matches users by login name but also by email address. In other words, when those users are registered in WordPress with user name and an email address and the email address in WordPress matches with the email address in Microsoft 365 / Azure AD then things should still work as expected.

    You can also have a look at this article https://docs.wpo365.com/article/109-update-order-for-matching-users that explains a (paid) feature to change the order in which users are matched.

    Thread Starter mathieugev

    (@mathieugev)

    Hi so I am not 100% sure I understand. If a user uses login with office365 and theres an email that match will it automatically log in to that user? How should I approach getting them logged in to that user. Also if they do match does both the username AND the email have to match or is the email enough? Sorry I just want to make sure I completely understand.

    Plugin Author Marco van Wieren

    (@wpo365)

    Hi @mathieugev

    and theres an email that match will it automatically log in to that user

    Yes, that is exactly what happens.

    How should I approach getting them logged in to that user

    Difficult to answer that question from where I stand. I’d say you analyze the user data in WordPress and verify that for all existing users an email address exists that matches with the email address for that user in Azure AD. The Microsoft Graph Explorer is a great way to inspect user data in Azure AD.

    Also if they do match does both the username AND the email have to match or is the email enough?

    One is enough. The plugin performs the matching in a cascading fashion and as soon as there is a match it will select that user.

    If you have the opportunity I’d really recommend that you back up the data in the existing WordPress website and use the backup to create a proof-of-concept instance, install the WPO365 | LOGIN plugin from the WordPress directory and test your use cases.

    Good luck, Marco

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link o365 to existing wordpress accounts.’ is closed to new replies.