Azure AD B2C with Dynamics 365 (CRM) Contacts

%3CLINGO-SUB%20id%3D%22lingo-sub-1278473%22%20slang%3D%22en-US%22%3EAzure%20AD%20B2C%20with%20Dynamics%20365%20(CRM)%20Contacts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1278473%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20find%20a%20solution%20for%20the%20following%20scenario%3A%3C%2FP%3E%3CP%3EWe%20want%20to%20build%20an%20application%20were%20our%20costumers%20can%20logon%20agains%20Azure%20B2C.%20However%20the%20field%20validation%20(claims)%20has%20to%20be%20agains%20Dynamics%20365%20(CRM)%20contacts.%3C%2FP%3E%3CP%3EI%20managed%20to%20setup%20a%20.NET%20application%20and%20authenticate%20with%20Azure%20AD%20B2C.%20but%20without%20any%20validation%2Fclaims.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%20I%20want%20the%20following%20fields%20to%20be%20validated%3A%3C%2FP%3E%3CUL%3E%3CLI%3EFirstname%3C%2FLI%3E%3CLI%3ELastname%3C%2FLI%3E%3CLI%3ERelationnumber%20(CRM)%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThose%20values%20has%20to%20come%20from%20the%20CRM%20contact%20fields%20and%20need%20to%20match%20the%20users%20input%20when%20singin%20up%2Fin%3C%2FP%3E%3CP%3EI%20am%20lost%20here%20and%20unable%20to%20find%20a%20solution%20for%20this.%3C%2FP%3E%3CP%3EI%20already%20tried%20to%20export%2Fimport%20CRM%20contacts%20in%20Azure%20B2C%20and%20created%20custom%20attributes%20(relationnumber)%20and%20fill%20them%2C%20but%20that%20doesn%E2%80%99t%20seems%20to%20be%20the%20solution.%20Also%20PowerApps%20I%20tried%20to%20create%20a%20Flow%2C%20but%20didn%E2%80%99t%20help%20either.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20if%20I%20am%20trying%20to%20setup%20the%20wrong%20way%2C%20please%20let%20me%20know.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1278473%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%20B2C%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDynamics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1640286%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20B2C%20with%20Dynamics%20365%20(CRM)%20Contacts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1640286%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20'Segoe%20UI%20WestEuropean'%2C%20'Segoe%20UI'%2C%20'Segoe%20UI%20Emoji'%2C%20-apple-system%2C%20BlinkMacSystemFont%2C%20Roboto%2C%20'Helvetica%20Neue'%2C%20sans-serif%3B%20font-size%3A%2014px%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20caret-color%3A%20%23343a41%3B%20color%3A%20%23343a41%3B%20white-space%3A%20pre-wrap%3B%22%20data-block%3D%22true%22%20data-editor%3D%228bjju%22%20data-offset-key%3D%22dtrh2-0-0%22%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%22dtrh2-0-0%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%22dtrh2-0-0%22%3E%3CSPAN%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20inherit%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%22%20data-offset-key%3D%22dtrh2-0-0%22%3EHope%20following%20article%20will%20help%20you%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%22dtrh2-0-0%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%22dtrh2-0-0%22%3E%3CSPAN%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20inherit%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%22%20data-offset-key%3D%22dtrh2-0-0%22%3EDescribes%20how%20to%20set%20up%20your%20Azure%20Active%20Directory%20(Azure%20AD)%20business-to-consumer%20(B2C)%20tenants%20for%20user%20site%20authentication%20in%20Dynamics%20365%20Commerce.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20'Segoe%20UI%20WestEuropean'%2C%20'Segoe%20UI'%2C%20'Segoe%20UI%20Emoji'%2C%20-apple-system%2C%20BlinkMacSystemFont%2C%20Roboto%2C%20'Helvetica%20Neue'%2C%20sans-serif%3B%20font-size%3A%2014px%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20caret-color%3A%20%23343a41%3B%20color%3A%20%23343a41%3B%20white-space%3A%20pre-wrap%3B%22%20data-block%3D%22true%22%20data-editor%3D%228bjju%22%20data-offset-key%3D%222c5bv-0-0%22%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%222c5bv-0-0%22%3E%3CSPAN%20class%3D%22yj-editor--link-entity%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20inherit%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20color%3A%20%23386cbb%3B%20text-decoration%3A%20underline%3B%22%3E%3CSPAN%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20inherit%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%22%20data-offset-key%3D%222c5bv-0-0%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdynamics365%2Fcommerce%2Fset-up-b2c-tenant%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdynamics365%2Fcommerce%2Fset-up-b2c-tenant%3C%2FA%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20'Segoe%20UI%20WestEuropean'%2C%20'Segoe%20UI'%2C%20'Segoe%20UI%20Emoji'%2C%20-apple-system%2C%20BlinkMacSystemFont%2C%20Roboto%2C%20'Helvetica%20Neue'%2C%20sans-serif%3B%20font-size%3A%2014px%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20caret-color%3A%20%23343a41%3B%20color%3A%20%23343a41%3B%20white-space%3A%20pre-wrap%3B%22%20data-block%3D%22true%22%20data-editor%3D%228bjju%22%20data-offset-key%3D%22btqev-0-0%22%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%22btqev-0-0%22%3E%3CSPAN%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20inherit%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%22%20data-offset-key%3D%22btqev-0-0%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20'Segoe%20UI%20WestEuropean'%2C%20'Segoe%20UI'%2C%20'Segoe%20UI%20Emoji'%2C%20-apple-system%2C%20BlinkMacSystemFont%2C%20Roboto%2C%20'Helvetica%20Neue'%2C%20sans-serif%3B%20font-size%3A%2014px%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20caret-color%3A%20%23343a41%3B%20color%3A%20%23343a41%3B%20white-space%3A%20pre-wrap%3B%22%20data-block%3D%22true%22%20data-editor%3D%228bjju%22%20data-offset-key%3D%225ut8j-0-0%22%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%225ut8j-0-0%22%3E%3CSPAN%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20inherit%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%22%20data-offset-key%3D%225ut8j-0-0%22%3EAzure%20Active%20Directory%20(Azure%20AD)%20powers%20Office%20365%20and%20Dynamics%20365%20services%20for%20employee%20or%20internal%20authentication.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20'Segoe%20UI%20WestEuropean'%2C%20'Segoe%20UI'%2C%20'Segoe%20UI%20Emoji'%2C%20-apple-system%2C%20BlinkMacSystemFont%2C%20Roboto%2C%20'Helvetica%20Neue'%2C%20sans-serif%3B%20font-size%3A%2014px%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20caret-color%3A%20%23343a41%3B%20color%3A%20%23343a41%3B%20white-space%3A%20pre-wrap%3B%22%20data-block%3D%22true%22%20data-editor%3D%228bjju%22%20data-offset-key%3D%22vooq-0-0%22%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%22vooq-0-0%22%3E%3CSPAN%20class%3D%22yj-editor--link-entity%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20inherit%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20color%3A%20%23386cbb%3B%20text-decoration%3A%20underline%3B%22%3E%3CSPAN%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-family%3A%20inherit%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%22%20data-offset-key%3D%22vooq-0-0%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowerapps%2Fmaker%2Fportals%2Fconfigure%2Fazure-ad-b2c%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowerapps%2Fmaker%2Fportals%2Fconfigure%2Fazure-ad-b2c%3C%2FA%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%22vooq-0-0%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22public-DraftStyleDefault-block%20public-DraftStyleDefault-ltr%22%20style%3D%22box-sizing%3A%20inherit%3B%20border%3A%200px%3B%20margin%3A%200px%3B%20padding%3A%200px%3B%20font-size%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant-caps%3A%20inherit%3B%20font-stretch%3A%20inherit%3B%20line-height%3A%20inherit%3B%20vertical-align%3A%20baseline%3B%20position%3A%20relative%3B%20direction%3A%20ltr%3B%22%20data-offset-key%3D%22vooq-0-0%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

 

I am trying to find a solution for the following scenario:

We want to build an application were our costumers can logon agains Azure B2C. However the field validation (claims) has to be agains Dynamics 365 (CRM) contacts.

I managed to setup a .NET application and authenticate with Azure AD B2C. but without any validation/claims.

 

For example I want the following fields to be validated:

  • Firstname
  • Lastname
  • Relationnumber (CRM)

Those values has to come from the CRM contact fields and need to match the users input when singin up/in

I am lost here and unable to find a solution for this.

I already tried to export/import CRM contacts in Azure B2C and created custom attributes (relationnumber) and fill them, but that doesn’t seems to be the solution. Also PowerApps I tried to create a Flow, but didn’t help either.

 

Also, if I am trying to setup the wrong way, please let me know.

 

Thank you!

1 Reply
Highlighted
 
Hope following article will help you,
 
Describes how to set up your Azure Active Directory (Azure AD) business-to-consumer (B2C) tenants for user site authentication in Dynamics 365 Commerce.
 
Azure Active Directory (Azure AD) powers Office 365 and Dynamics 365 services for employee or internal authentication.