Profile Mapping

This feature allows mapping attributes received from the OAuth Provider to the fields of the Profile module. To configure this feature you need to create profile type first.

Add Profile Type to Drupal site

  • Install the Profile module and its dependencies on your Drupal site.
  • After installing the module navigate to the Configuration tab.
  • Click on the Profile types under the People section.
  • Click the +Add Profile type button.
  • Enter the label in the Label text field which is mandatory.
  • Scroll down and click on Save button.
  • Now, click on Manage Field button and then click on +Create a new field button.
  • Select Plain text in the Choose a type of field pop-up. Enter the label in the Label text field and click the Continue button.
  • Enter the Maximum length and Allowed number of values.
  • If you want to make mandatory field, then check the check box of the Required field.
  • Similarly, check the check box of Set default value to set default value for this field and enter the value in the text field.
  • Click on the Save button.

Configure Profile Mapping

Watch how to configure Profile Mappings: ▶ Watch Setup Video

  • After successfully performing the Test Configuration, go to the Client Configuration section and navigate to the Manage tab to locate your desired application.
  • In the corresponding application row, click the dropdown arrow next to Attribute Mapping under the Mappings column, and select Profile Mapping.
  • In the Profile Mapping section, check the Enable Profile Mapping checkbox. This step is mandatory.
  • Now, select the Profile Type from the drop-down and click on the Fetch Profile Fields button.
  • Now, select the Drupal profile field from the dropdown and enter the OAuth Server Attribute Name in the text field. If you want to add multiple rows, add the no of rows in the textfield next to Add button and then click Add button.
  • Click on the Save button.

Let’s see how Profile Module Mapping works:

  • Open an incognito window / new browser. Navigate to the Drupal site login page and log in using the provider name link.
  • Navigate to the People tab and click on the user link.
  • You can see the Additional Contact Info tab that was created.