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

    Managing User Synchronization and ID Consistency with FusionAuth Generic Connectors

    Scheduled Pinned Locked Moved
    Frequently Asked Questions (FAQ)
    logins login
    1
    2
    2
    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.
    • W
      wesley
      last edited by

      We plan to use a generic connector solely for authentication, with the “Migrate user” flag set to “No.” According to the FusionAuth documentation, the connector’s user object must include an id and either a username or email.

      When a user logs in for the first time, FusionAuth creates a user object. On subsequent logins, FusionAuth synchronizes this user object with the external source.

      Questions:

      1. Is there a way to prevent errors if the connector returns a user object where the email remains the same, but the id is different on subsequent logins?
      2. Is it possible to disable FusionAuth’s synchronization of the user object after every successful login?
      W 1 Reply Last reply Reply Quote 0
      • W
        wesley @wesley
        last edited by

        There isn’t a way to stop FusionAuth from synchronizing the user object when using a generic connector. Even when a third-party system is the “system of record,” FusionAuth still requires a local user record to support its internal workflows and features. If you choose not to migrate users into FusionAuth, your external system must also provide application registrations on the returned user object to ensure proper integration.

        Regarding your first question, there’s no way to prevent an error if the user.id changes between logins. The id field in the user object should remain consistent across logins. Changing it will inherently cause issues with how FusionAuth matches and manages user records.

        For more detail, see the documentation here:
        Using the Generic Connector as the System of Record

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