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

      Do user ids have to be different between tenants?

      Q&A
      • tenants user ids uniqueness • • dan
      2
      0
      Votes
      2
      Posts
      1.5k
      Views

      danD

      User ids need to be globally unique. You can either provide your own unique uuid or you can let FusionAuth provide them for you. But these values are not tenant scoped.

    • danD

      Solved What version of UUID is used for auto-generation of user ids?

      Q&A
      • uuid user ids • • dan
      2
      0
      Votes
      2
      Posts
      712
      Views

      danD

      UUID v4

      More details about datatypes in general: https://fusionauth.io/docs/v1/tech/reference/data-types

    • A

      Mapping Fusion Auth's user ID with our internal user ID

      Q&A
      • data mapping ids user ids • • ashok
      3
      0
      Votes
      3
      Posts
      1.8k
      Views

      A

      Thanks for the reply @dan.
      We ended up storing sub ID on our side. We thought that might gives us more flexibility down the road (not sure about this but if it doesn't work then we'll have an extra column in the db; a small price to pay IMHO).

      "Where to map the ID?" was a bit headache for us as we didn't want to miss it or make an extra call by polling ourselves. Since we are using .NET Core, we ended up hooking into OnUserInformationReceived event, one of many from OpenIdConnectEvents. Hopefully, I'm not doing something really stupid.