# Identity Provider - User ID in link

**URL:** <https://forum.keycloak.org/t/identity-provider-user-id-in-link/8497>\
**Category:** Miscellanaeous\
**Created:** [April 14, 2021, 7:39am UTC](https://forum.keycloak.org/t/identity-provider-user-id-in-link/8497 "2021-04-14T07:39:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixslx](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/pixslx/32/2866_2.png) [@pixslx](https://forum.keycloak.org/u/pixslx)\
**Post date:** [April 14, 2021, 7:39am UTC](https://forum.keycloak.org/t/identity-provider-user-id-in-link/8497/1 "2021-04-14T07:39:49Z")

</div>

Hi,

Keycloak uses sub claim that’s coming from an external IdP as “Provider User ID” when creating the link for the user. Can I change that behavior somehow? I would like to use some other claim coming from IdP to be used as provider user ID in the link.
