0

I working with azure ad b2c, and now i want to change user'email. Is it possible to allow users to edit their profile email in edit profile ?? Now my mobile app can change user'name even so reset password.

Lawson
  • 11
  • 1

1 Answers1

0

You can use Update user method of Microsoft Graph API to achieve this.

Http request:

PATCH https://graph.microsoft.com/v1.0/me
Content-type: application/json

{
  "mail": "Email_Address"
}
Harshita Singh
  • 4,590
  • 1
  • 10
  • 13
  • T tried with graph api but i cant use access token which i got after login success. I got error 401 invalid access token. I have to get another access token ? – Lawson Sep 17 '20 at 01:20
  • Check out the process of getting access token here in my answer - https://stackoverflow.com/questions/63924373/calling-ms-graph-api-for-additional-attribute-from-within-b2c-ief-policy/63926452#63926452 – Harshita Singh Sep 17 '20 at 05:03
  • And make sure you have the required permissions. – Harshita Singh Sep 17 '20 at 05:04