Can I retrive also the company and the phone number when I sign in/sign up with LinkedIn with custom policy Azure B2C?

Andon Irina 21 Reputation points
2021-07-21T14:49:19.16+00:00

Hello,
As is in documentation : https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-linkedin?pivots=b2c-custom-policy#add-a-user-journey, when you signin/sign up with Linkedin with custom policy Azure B2c, we can prefill givenname and surname from LinkedIn:
![116776-image.png]1

But I need also the company and the phone number.
Is it possible? How?

Thank you in advance!
Irina

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,886 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,616 Reputation points
    2021-07-22T02:40:27.667+00:00

    Hi @Andon Irina · Thank you for reaching out.

    Looking at the Linked in Technical Profile within the custom policy, we make below API call with r_emailaddress and r_liteprofile scopes:

    Get https://api.linkedin.com/v2/me

    The information returned from above endpoint is passed to B2C during claims exchange. I checked and found that above GET call returns below information only and doesn't return company and phone number.
    116849-image.png

    Also, while configuring LinkedIn Application, we authorize "Sign In with LinkedIn", which includes only the r_emailaddress and r_liteprofile scopes that doesn't allow retrieving organization and phone info.
    116922-image.png

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.