Hi @Sebastián Cura , you can use custom policies. Custom policies provide more flexibility and control over the user experience, allowing you to handle authentication and profile editing directly in your web application without being redirected to Microsoft.
To create a custom policy for profile editing, follow these steps:
Download the starter pack with pre-built policies, including sign-up and sign-in, password reset, and profile editing policy. You can find more information on getting started with custom policies in Azure AD B2C here.
Modify the XML files according to your requirements and upload them to your Azure AD B2C tenant.
Integrate the custom policy into your web application by initiating an authorization request to the custom policy-provided endpoint.
As for adding User.Read
and User.Write
permissions from Microsoft Graph to your application, you can follow these steps:
- In the Azure portal, navigate to your Azure AD B2C application.
- Select "API permissions" and then click "Add a permission."
- Select "Microsoft APIs" and then "Microsoft Graph."
- Choose "Delegated permissions" and select
User.Read
andUser.Write
from the list. - Click "Add permissions."
Please note that you might need to grant admin consent for these permissions if required.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark it as "Verified" so other users can reference it.
Thank you,
James