Hi @Risa Shereen ,
Thanks for reaching out.
I understand you need to understand which ids need to provide in the ids listed in the below request:
POST /users/{id | userPrincipalName}/authentication/passwordMethods/{id}/resetPassword
The first id is the user's id. You can alternatively use their userPrincipalName.
The second id is the passwordMethod's id. You get it from the response you receive from running List passwordMethods
https://graph.microsoft.com/beta/users/{userPrincipalName}/authentication/passwordMethods.
and this PasswordId need to pass along with userId to reset the Password.
Hope this will give clarity.
Thanks,
Shweta
-----------------------------------------------
Please remember to "Accept Answer" if answer helped you.