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!