# Can we provide a custom userId during custom authentication?

**URL:** <https://forum.heroiclabs.com/t/can-we-provide-a-custom-userid-during-custom-authentication/6162>\
**Category:** Runtime Framework\
**Tags:** server-framework, authentication, golang\
**Created:** [April 19, 2025, 5:53am UTC](https://forum.heroiclabs.com/t/can-we-provide-a-custom-userid-during-custom-authentication/6162 "2025-04-19T05:53:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![surajTLabs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/surajtlabs/32/1497_2.png) [@surajTLabs](https://forum.heroiclabs.com/u/surajTLabs)\
**Post date:** [April 19, 2025, 5:53am UTC](https://forum.heroiclabs.com/t/can-we-provide-a-custom-userid-during-custom-authentication/6162/1 "2025-04-19T05:53:36Z")

</div>

Is there a way to provide our own `userId` during custom authentication in Nakama, instead of letting Nakama generate one automatically?

We have a backend-managed `personId` which is guaranteed to be unique and in UUID format. We’d like to use this `personId` as the Nakama `userId` for each account, rather than relying on Nakama’s default generated IDs.

Is this supported and if so, what’s the correct approach to ensure the provided ID is respected?

Nakama Version: 3.25.0
