How to implement delegated permissions with a non-interactive environment

Nicolas Guerrero 0 Reputation points
2024-10-11T17:05:08.83+00:00

I'm implementing an solution that reset users passwords on Azure AD. Per the documentation, this operation requires delegated permissions and can't be done with application permissions. How can I implement this workflow in behalf of an admin account in a secure and automated way?

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

1 answer

Sort by: Most helpful
  1. Vasil Michev 108.6K Reputation points MVP
    2024-10-12T15:17:54.6933333+00:00

    Do you specifically requite the "reset password" flow? If changing the password is an acceptable alternative, you can use the Update user method, which supports application permissions. See this example: https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http#example-3-update-the-passwordprofile-of-a-user-and-reset-their-password

    0 comments No comments

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.