FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Connector User authentication issue

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    370
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hanumant.sidraya
      last edited by

      Hi All,

      • We have configured the connector in the tenant and user migration is disabled.

      • Once the user gets authenticated the copy of the user is getting created in the fusion auth.

      • If the connector is down users are not getting authenticated as expected its working.

      • If the connector is removed from the tenant configuration after that users are getting authenticated.

      • This is what we don’t want once the connector is removed all the user data should get cleared from the fusion auth.

      • How can we achieve this?

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @hanumant.sidraya
        last edited by

        @hanumant-sidraya

        Do you mean you want to deactivate all users who were authenticating with a given connector? This is not a typical use case, so you'll need to write some code to do this.

        If so, then I'd script the removal of the connector and at the same time mark all users associated with that connector as inactive (or you could hard delete them if you want).

        The connectorId is not one of the searchable attributes for users, so the easiest way to do this would be to have your custom connector set an attribute on the user.data field, something like user.data.authDataSource = clientXYZ or similar.

        Then you could query for all users with that user.data value and deactivate or delete them.

        Hope that helps.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post