@Jizeth Esperanzate ,
Yes we do have a graph API endpoint for the same. Your account which you use to query needs to be assigned one of the following roles in Azure AD .
- Global administrator
- Privileged authentication administrator
- Authentication administrator
You also need to provide the permission for UserAuthenticationMethod.ReadWrite.All your application you will be using . You can use the endpoint https://graph.microsoft.com/beta/users/******@contoso.com/authentication/methods
where user@Company portal .com is your user profile for which you would like to know the authentication methods. You can use graph explorer to test as well .The output should look something like below.
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#users('user%40contoso.com')/authentication/methods",
"value": [
{
"@odata.type": "#microsoft.graph.passwordAuthenticationMethod",
"id": "29c10230-2190-26e1-f276-444c6a1f254",
"password": null,
"creationDateTime": null
}
]
}
I would suggest to go through the related article for auth methods for the same. Hope this helps.
Thank you .
----------------------------------------------------------------------------------------------------------------------------------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators