It would be really nice to customize the Oauth2 claim, which is used for the username. Until now the email or mail claim are used by default and are not configurable. There are cases, e.g. if you use AzureAD where you want to use another id like the oid as unique username.