Identity Provider - User ID in link


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.