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 Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olga Os - MSFT 5,961 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 46,411 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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.