How to Get Authentication Methods Details in Azure via MS Graph API?

Jizeth Esperanzate 56 Reputation points
2021-12-09T10:12:49.94+00:00

I was wondering if there is an MS Graph API endpoint that retrieves the user registration details from the Authentication methods feature in Azure Portal?
These are the sample details I want to retrieve:
156150-image.png

156159-image.png

If the MS Graph API endpoints are not available, what are other ways I can get these details to my application?

Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shashi Shailaj 7,631 Reputation points Microsoft Employee Moderator
    2021-12-09T10:28:02.913+00:00

    @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 130616-image.png or upvote 130671-image.png 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

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.