Change Azure AD B2C User Password with Graph API

前端 未结 2 1649
梦如初夏
梦如初夏 2020-12-19 03:49

I\'m trying to use the Sample Graph API app to change a user\'s password but I\'m getting:

Error Calling the Graph API Response:

{
          


        
2条回答
  •  误落风尘
    2020-12-19 04:23

    Try below settings, works for me.

    Used the below JSON

     {
      "accountEnabled": true,
      "signInNames": [
        {
          "type": "emailAddress",
          "value": "kart.kala1@test.com"
        }
      ],
      "creationType": "LocalAccount",
      "displayName": "Joe Consumer",
      "mailNickname": "joec",
      "passwordProfile": {
        "password": "P@$$word!",
        "forceChangePasswordNextLogin": false
      },
      "passwordPolicies": "DisablePasswordExpiration",
      "givenName": "Joe",
    }
    

    Also make sure you assign the application the user account, administrator role which will allow it to delete users link here

提交回复
热议问题