Can identities be imported with a pre-existing UUI...
# ory-network
p
Can identities be imported with a pre-existing UUID?
f
No that's not possible, Ory assigns the UUIDs for identities. We recommend adding a metadata field to store any legacy IDs you may have
p
Since UUIDs are unique, and there’s a postgres backing this somewhere
can you import our identities to ory network as a DB insert?
w
@fast-lunch-54279 would metadata fields added for this be queryable in an indexed way? i.e. we do lookups by our user id.
f
@steep-lamp-91158 is there any way to achieve this, e.g. by using UUIDs as some username or credentials identifier?
I'll check if we have the option to import with stable UUIDs
how many IDs are we talking about? are the UUIDs well distributed?
s
right now you will have to make them a credential identifier, but that should not be a problem right?
db imports are a lot of work for us...
a side effect would be that if you set it up for password auth, then users can technically log in with their UUID and password instead of email and password, but that's probably not a huge issue?
p
The DB import suggestion was a long shot — I’m hopeful, but I expect that it’s a major bit of work due to many different concerns.
We can try the credential ID route… I agree the login with uuid isn’t an issue
👍 1