update password using graph api

Dmytro 81 Reputation points
2022-10-17T16:30:41.467+00:00

Hello everyone!

I'm trying to implement a password update method via Graph API.
To do this, I'm using the user update feature in the graph API beta.

https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-beta&tabs=http

beta version allows you to assign application permission
I have all permissions for this. But I am getting an error.
What am I doing wrong?

251184-%D0%B7%D0%BD%D1%96%D0%BC%D0%BE%D0%BA-%D0%B5%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-2022-10-17-%D0%BE-185710.png

251185-%D0%B7%D0%BD%D1%96%D0%BC%D0%BE%D0%BA-%D0%B5%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-2022-10-17-%D0%BE-185216.png

251107-%D0%B7%D0%BD%D1%96%D0%BC%D0%BE%D0%BA-%D0%B5%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-2022-10-17-%D0%BE-185609.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,849 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,679 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,859 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olga Os - MSFT 5,836 Reputation points Microsoft Employee
    2022-10-17T17:02:22.573+00:00

    Hello @Dmytro ,

    Most likely you are getting this failure due to your current AAD plan (supported/non supported features on it).

    From what I can see with the screenshots you provided, it seems that you do not currently have an Azure AD Premium P1 or P2 license activated on your tenant. Group-based assignment and nested groups are currently only available with a P1 or P2 license.

    Use a group to manage access to SaaS apps - Azure AD
    251108-image.png

    and Azure Active Directory Pricing =>

    251164-image.png

    Hope above answers your questions and concerns.

    --------------------------------------------------------

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.

    Sincerely,
    Olga Os


  2. CarlZhao-MSFT 37,786 Reputation points
    2022-10-18T02:44:57.823+00:00

    Hi @Dmytro

    This is because you have not granted the User Administrator role to your application.

    251401-page12.png

    Sign in to Azure AD as a global administrator>Roles and administrators> find User Administrator >Add assignments> enter your application ID to search and add.

    251304-image.png

    251376-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.