acmichaud
Aug 08, 2022Copper Contributor
Status:
Completed
Impossible to get the phone when it is added from B2C
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.
There is also this thread on StackOverflow that says that the issue is the phone format.
So I tried to add the space
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!
3 Comments
Sort By
- acmichaudCopper Contributor
Opened a ticket here if anyone ever stumble on this issue.
https://feedbackportal.microsoft.com/feedback/idea/239b35b5-f517-ed11-a81b-6045bd7d68ae
- lindalu-MSFT
Microsoft
Status changed:NewtoCompleted - lindalu-MSFT
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=most-votes