OAuth / OpenID Connect

How to map roles to user/group?

1905 views January 3, 2020 9

  1. Make sure you have configured correct callback URL in your OAuth provider and configured all required information correctly.
  2. Click on “Test Configuration” and you will get the list of Attribute Names and Attribute Values.
  3. From Test Configuration window map Attribute Names with Attribute Names in Attribute Mapping section.
  4. Once Attribute Mapping is done, put Group Names values in front of WordPress role you want to assign in Role Mapping section.

e.g. Administrator  => Group 1

Note : To enable Role Mapping, you need map Group Name Attribute first.

Was this helpful?