title: Resetting a user's password
body: <p>I am trying to find a solution for resetting user's passwords (all users, not just the authenticated user) in Azure Active directory via a non-interactive login. </p>
  
  <p>Right now it seems this is only available via powershell's MSOnline <a href="https://docs.microsoft.com/en-us/powershell/module/Azuread/Set-AzureADUserPassword?view=azureadps-2.0" rel="noreferrer"><code>Set-AzureADUserPassword</code> cmdlet</a> using a Service Principal login. </p>
  
  <p>I'd like to find a solution using an API Endpoint so I can use C#. The closest solutions I've found was <a href="https://developer.microsoft.com/en-us/graph/" rel="noreferrer">Microsoft Graph API</a> but after setting it up, I realized I can only reset the passwords via an interactive login and consent flow. It's not allowed via non-interactive.</p>
  
  <p>My next attempt is to use <a href="https://azure.microsoft.com/en-us/resources/samples/active-directory-dotnet-graphapi-console/" rel="noreferrer">Azure AD endpoint</a> but my concern is I am seeing the same message that recommends that we use the Microsoft graph API. Does this means azure ad endpoint will be going away?</p>
  
  <p>Is there a recommended approach without using PowerShell?</p>