This capability applies to User Registration as well as User Synchronization.
The WordPress + Office 365 plugin not only serves the purpose of delegating the authentication of a WordPress user to Microsoft but it offers also a handful of highly useful capabilities that enrich the user’s profile in WordPress or BuddyPress. For one, the plugin can, when enabled through configuration, retrieve additional user profile fields from Office 365 / Azure AD and add these fields as additional user meta fields in WordPress / BuddyPress. The user is able to add fields that are not populated and save those fields manually. However, these fields may be overwritten when you as an administrator choose to synchronize users and whilst doing so to update the user information already stored in WordPress.
Before the plugin is able to retrieve access keys needed to request data from Microsoft Graph on your behalf, you must create a so-called application secret / key.
Launch the WordPress + Office 365 wizard by navigating to WordPress Admin, go to the plugins page and click Configuration. Select the User sync tab and check the box labelled Show O365 user fields. You then must specify in the next control labelled O365 user fields and per row enter first the technical name for the field you want to retrieve e.g. jobTitle, mobilePhone or officeLocation followed by the title that shall be used when the field is shown in the user’s profile e.g. Job title, Mobile phone or Office location. Make sure to click “+” each time after you entered a new combined field.
|Show O365 user fields||Yes||Yes||Yes|
|Extra user fields||Yes||Yes||Yes|