Why does not Apple or Facebook IDP fetch username sometimes?

Mathias Olsson 26 Reputation points
2021-06-13T03:52:28.023+00:00

We are using Azure B2C With User flow "out of the box". We're currently using Facebook and "Sign in with apple" IDP. We have noticed that the username that should be the email address is not fetched for some accounts, instead it's empty. Why is that?

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,876 Reputation points Moderator
    2021-06-14T09:13:23.563+00:00

    Hi @Mathias Olsson · Thank you for reaching out.

    The only reason I can think of is, if the user has configured privacy settings and has not provided public access to his/her email address. Due to this, these IDPs are not providing user's email address to B2C during claims exchange for that user.

    Go to Facebook Privacy Checkup and in "How people can find you on Facebook" tile, make sure email address is visible to Everyone as highlighted below:

    105322-image.png

    Similarly check this setting in the Apple ID and test running Azure B2C With User flow again.

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

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

    1 person found this answer helpful.

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.