While most discussions of mapping Azure B2C identities to an external source only mention an email address a number MS pages mention email address or user object id.
The following GitHub repo on a remote profile will hopefully help.
https://github.com/azure-ad-b2c/samples/tree/master/policies/remote-profile