Hi @Erika Papp (Winformatics) ,
Thanks for reaching out.
Are you trying to reset the password of self-account? User is not allowed to reset password of his own account.
You would require UserAuthenticationMethod.ReadWrite.All delegated permission to call this API. As per your screenshot permission is added. Could you please decode the token using jwt.ms to check whether you have this permission in your access token too.
You can get the authentication method id using https://graph.microsoft.com/beta/users/{userprincipal}/authentication/passwordMethods
Then you can use the id you get in response in response to reset the password.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.