How to get Number of methods required to reset for all users via Graph Api

Viewed 62

I need to get "users->password reset->Authentication methods -> " via Graph Api ( see attach ) Can't find it for users , please advice enter image description here

2 Answers

If I am not wrong , you are looking for graph API to check authentication methods , by using POST - https://graph.microsoft.com/v1.0/users/{user_id}/authentication/methods you can check the list of your authentication methods

For more please check the docs - https://docs.microsoft.com/en-us/graph/api/authentication-list-methods?view=graph-rest-1.0

And if you want to reset the password ,

if you are using passwordMethods , you have to use

POST https://graph.microsoft.com/v1.0/users/6ea91a8d-e32e-41a1-b7bd-d2d185eed0e0/authentication/passwordMethods/28c10230-6103-485e-b985-444c60001490/resetPassword Content-type: application/json

{ "newPassword": "Cuyo5459" }

ref doc - https://docs.microsoft.com/en-us/graph/api/authenticationmethod-resetpassword?view=graph-rest-1.0&tabs=http

Hope this helps

Related