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

Can you migrate passkey information between tenants?

Scheduled Pinned Locked Moved Solved
Q&A
1
2
3.8k
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.
  • D
    dan
    last edited by 14 Aug 2024, 14:39

    I want to let a user log in to one tenant using passkeys.

    Then, later, I want to move them to another tenant.

    Can I migrate their passkey information as well?

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

    D 1 Reply Last reply 14 Aug 2024, 14:42 Reply Quote 0
    • D
      dan @dan
      last edited by 14 Aug 2024, 14:42

      Yes. You can do this with the API:

      curl -H 'Authorization: ...' https://yourinstance.fusionauth.io/api/webauthn\?userId=00000000-0000-0000-0000-000000000001  > out
      

      Then remove the following:

      • id
      • insertInstant
      • lastUsedInstant
      • tenantId

      update the userId

      And use the import call:

       curl -H 'X-FusionAuth-TenantId: newtenantid' -H 'Authorization: ...' https://yourinstance.fusionauth.io/api/webauthn/import -H 'Content-type:application/json' -d '{...}'
      
      

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

      1 Reply Last reply Reply Quote 0
      • D dan has marked this topic as solved on 14 Aug 2024, 14:42
      2 out of 2
      • First post
        2/2
        Last post