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

Time:09-15

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

CodePudding user response:

You can check by yourself the documentation about Identity and access but I couldn't find any method or property that gets number of methods required to reset.

Resources:

Authentication methods

CodePudding user response:

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