Skip to content

Add option "define role slug for generated users"

Chouffy requested to merge chouffy/wp-sso-for-azure-ad:master into master

Hi (again!),

I want to manually define the role that will be applied to users that are generated via this plugin. The reason is that I want users logged in via SSO to have a different rights than others that register in Wordpress directly.

Caveat that I'm aware and that we may or may not want to discuss:

  • the text input isn't validated, so the user could put a non-existent role slug. This will assign no role to the user ('No role for this site')
  • it's a text input, not a choice list, so it's a bit less nice

Merge request reports