Change password with MSAL on iOS App

Francesca 21 Reputation points
2022-10-19T16:06:05.1+00:00

Hello,

I need your help.

I need to implement a mechanism to allow users to change their personal password after login for work accounts in an iOS application. I need to interact with MSAL through which the users login.
Login procedure was implemented as reported in https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-ios and it properly works.
I read on the web that theoretically I have to use the so called "Custom Policies", in order to develop change password feature, as reported in "https://learn.microsoft.com/en-us/azure/active-directory-b2c/add-password-change-policy?pivots=b2c-custom-policy". My problem is that I have currently not Azure AD B2C portal enabled.

How can I face this situation? Is it mandatory to enable Azure AD B2C portal to reach the goal or is it possible to do it in a different way?

Thank you in advance for your help.

Francesca

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,876 Reputation points
    2022-10-20T08:32:35.7+00:00

    Hi @Francesca , you can use the POST /me/changePassword endpoint of the Microsoft graph API to implement the ability to change the password. Hope this helps. Best Wishes.
    Here is the documentation for your reference: https://learn.microsoft.com/en-us/graph/api/user-changepassword?view=graph-rest-1.0&tabs=http

    252318-untitled1020.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.


0 additional answers

Sort by: Most helpful

Your answer

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