Upgrading Local Users to SSO

Created on 17 January 2024, 9 months ago
Updated 4 March 2024, 7 months ago

Problem/Motivation

We've installed o365 and enabled SSO. Existing 'local' users can now login via two methods:

1) user/password account
2) Office 365 SSO.

I noticed it's possible to hide the login form, however is it possible to upgrade 'local' user to SSO only accounts?
We would like to block certain user roles so they can no longer user the login form. By this I mean that they can only login via SSO and not for example by the /user/drupal_login path.

Proposed resolution

I'm assuming the solution would be something like deleting the user password or perhaps only allowing certain roles to use the /user/drupal_login path.

💬 Support request
Status

Closed: works as designed

Version

5.0

Component

Miscellaneous

Created by

🇬🇧United Kingdom sittard

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sittard
  • Status changed to Closed: works as designed 8 months ago
  • 🇳🇱Netherlands fabianderijk Alphen aan den Rijn

    I would say that deleting their passwords is the most safe way to do this. Otherwise they might still be able to login for instance when using the basic_auth module.

  • 🇬🇧United Kingdom sittard

    Thanks I will need to figure out a way of doing this. Perhaps a drush command exists.

Production build 0.71.5 2024