Skip to content
Back

Appwrite not having the same userId as OIDC User ID: New User Creation

  • 0
  • Flutter
  • Cloud
  • Auth
R3CKON
13 Aug, 2025, 08:09

Urgent:

So I am using keycloak as my OIDC provider, everything has been setup nicely. working fine. I want to know whether Appwrite creates a new UUID everytime within the flow if it doesn't exists in the existing db or it uses the user id that is coming from OIDC? if yes then how do i get it? account.get() is not having any other field i can refer to.

My other applications depend on it.

I am planning to make two appwrite functions to implement that but let me know if there is any workaround for this before I proceed with rewriting the entire auth again.

Thanks in Advance.

TL;DR
Appwrite uses a new `UUID` if the user does not exist in the database, rather than the OIDC User ID. Currently, there is not a direct way to access the OIDC User ID through `account.get()`. Consider creating two Appwrite functions to handle this or look for workarounds before modifying the authentication system.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more