FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Tags
    3. disable
    Log in to post
    • All categories
    • J

      Solved Disable email and password logins

      Q&A
      • disable login idp sso • • johnathon
      2
      0
      Votes
      2
      Posts
      1.5k
      Views

      J

      @johnathon

      One approach would be to append the parameter idp_hint to the login URL to redirect a user to the appropriate IdP login page. Please read the hints section in our documentation for more information.

      Another way to disable the password and email login for a user would be to set their password to a random 25-character string. This would make the password essentially impossible to brute force and thus impossible for them to log in via the hosted login page.

    • danD

      How can I disable a user without deleting them?

      Q&A
      • user disable • • dan
      2
      0
      Votes
      2
      Posts
      1.2k
      Views

      danD

      You can use a 'soft delete'.

      Whenever you delete a user with the API without using hardDelete=true, the user is not able to login, but will still be visible in the API and the management UI.

      See https://fusionauth.io/docs/v1/tech/apis/users/#delete-a-user for more.