Customizable user id claim #205

Closed
opened 2025-11-20 05:08:00 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @deluxghost on GitHub (Oct 12, 2022).

Originally assigned to: @mlsmaycon on GitHub.

while logging in with sso, netbird read user id from hardcoded claim sub, but I'm using a custom claim (for example username), the sub field is just a hash of some details. I want an env var to tell netbird where to read user id from

Originally created by @deluxghost on GitHub (Oct 12, 2022). Originally assigned to: @mlsmaycon on GitHub. while logging in with sso, netbird read user id from hardcoded claim `sub`, but I'm using a custom claim (for example `username`), the `sub` field is just a hash of some details. I want an env var to tell netbird where to read user id from
saavagebueno added the enhancementmanagement-service labels 2025-11-20 05:08:00 -05:00
Author
Owner

@mlsmaycon commented on GitHub (Oct 13, 2022):

@deluxghost, thanks for the suggestion, it makes sense, and I can see many deployments benefiting from that.

FYI, if you are using an IDP like Authentik, you can choose between email or user ID for the sub-claim.

Maybe you want to check your IDP in the meantime.

@mlsmaycon commented on GitHub (Oct 13, 2022): @deluxghost, thanks for the suggestion, it makes sense, and I can see many deployments benefiting from that. FYI, if you are using an IDP like Authentik, you can choose between email or user ID for the sub-claim. Maybe you want to check your IDP in the meantime.
Author
Owner

@deluxghost commented on GitHub (Oct 13, 2022):

@mlsmaycon thanks for the reply. I know there are 4 modes for subject in authentik, however I am using a "really" customized claim field (if you wonder, it's a unique user attrib from social login, and I insert it into claims via property mapping)

I found some other apps like nextcloud allow me to customize this claim source, so I think netbird could also implement this

I am still testing netbird tho, I dont need it to be there immediately

@deluxghost commented on GitHub (Oct 13, 2022): @mlsmaycon thanks for the reply. I know there are 4 modes for subject in authentik, however I am using a "really" customized claim field (if you wonder, it's a unique user attrib from social login, and I insert it into claims via property mapping) I found some other apps like nextcloud allow me to customize this claim source, so I think netbird could also implement this I am still testing netbird tho, I dont need it to be there immediately
Author
Owner

@mlsmaycon commented on GitHub (Oct 13, 2022):

@deluxghost got it. Ok, we will check this for the upcoming releases

@mlsmaycon commented on GitHub (Oct 13, 2022): @deluxghost got it. Ok, we will check this for the upcoming releases
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#205