You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2025. It is now read-only.
In Identity, sometimes all we have is a UserId or UserName only, but querying for as User with those already requires to know the according PartitionKey. A generic, fast and convenient way to get a PartitionKey from either a UserId or a UserName, when the PartitionKey can really be anything, needs to be figured out (just for example: when creating a user with a PartitionKey, store a UserId-UserName-PartitionKey mapping in DocumentDb).
In Identity, sometimes all we have is a
UserIdorUserNameonly, but querying for as User with those already requires to know the accordingPartitionKey. A generic, fast and convenient way to get aPartitionKeyfrom either aUserIdor aUserName, when thePartitionKeycan really be anything, needs to be figured out (just for example: when creating a user with aPartitionKey, store aUserId-UserName-PartitionKeymapping in DocumentDb).