Impossible to get the phone when it is added from B2C

Impossible to get the phone when it is added from B2C
1

Upvotes

Upvote

 Aug 08 2022
3 Comments (3 New)
Completed

Hi there,

 

This was originally posted there : https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/issues/506
But they asked me to post it here. This is more a bug than a request for a feature.

 

 

I'm having an issue where the graphAPI returns an empty array when I call this endpoint

/users/{id}/authentication/phoneMethods

Here is the query
`https://graph.microsoft.com/beta/users/da07b4a6-****-****-****-*********1d0/authentication/phoneMethods`

The result

 

 

 

 

"@odata.context": "https://graph.microsoft.com/beta/$metadata#users('da07b4a6-****-****-****-*********1d0')/authentication/phoneMethods",
"value": []

 

 

 

 

Of course, the user has a phone attached to his MFA.

 

acmichaud_1-1659960733061.png

 

There is also this thread on StackOverflow that says that the issue is the phone format.

https://stackoverflow.com/questions/65200556/bug-identified-in-azure-b2c-mfa-phone-number-format-missing-spaces

So I tried to add the space

acmichaud_2-1659960765978.png

 

And now it works.

 

 

 

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('da07b4a6-****-****-****-*********1d0')/authentication/phoneMethods",
    "value": [
        {
            "id": "----",
            "phoneNumber": "+1 4************",
            "phoneType": "mobile",
            "smsSignInState": "notAllowedByPolicy"
        }
    ]
}

 

 

 

Is it possible to fix this issue?

Thanks!

Comments
Microsoft

HI, I'm not sure why Graph team asked you to post this here. Graph has completely migrated to the new Feedback Portal. You can find the Graph feedback and enter a bug report or feature request or any other kind of feedback here:
https://feedbackportal.microsoft.com/feedback/forum/ebe2edae-97d1-ec11-a7b5-0022481f3c80?page=1&sort...

Microsoft
Status changed to: Completed
 
Copper Contributor

Opened a ticket here if anyone ever stumble on this issue.

https://feedbackportal.microsoft.com/feedback/idea/239b35b5-f517-ed11-a81b-6045bd7d68ae