resetPassword false-success (status code 202 on failure)

itay4 56 Reputation points
2023-08-17T07:02:51.0733333+00:00

resetPassword false-success (status code 202 on failure)

Hi, I'm using this endpoint to reset the password of a user.

 

When attempting to change in a way that goes against the organization policy (e.g. more times than allowed in a day, or to a password that doesn't meet the requirements) and the audit log shows a failure, the Graph API endpoint still returns a status code 202, as if the request was successful.

 

Is this a bug? Is there any way to tell whether such request is successful or not? 

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,482 questions
{count} votes

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.