Hi
I'm trying to integrate Azure AD as external identity with Dynamics portal. When an external ID is authenticated and logged on to the Portal for the first time, dynamics creates a new Contact record and associates it with the external ID.
What I notice is that the external identity username is some form of encrypted hash which must be based on the Azure AD account somehow.
I want to automate the creation of contacts but have no idea how this external identity username is derived.
I want to do this association programmatically. But no idea how to get the username from AD to associate it with contact. Please see the screen shot below.
