0
votes

Is there any way to add a custom role attribute (that the user cannot edit) to a B2C custom policy?

I have found this and this resource that show how to add a custom attribute, but it seems they add attributes that the user can edit. I wish to have a custom role or admin attribute that only administrators of my app in Azure can edit inside the Azure B2C interface. I also want the attribute included in the jwt access token that is brought down when users log in.

I am specifically looking to define application roles which can be assigned and edited through the B2C interface and not classic Azure AD. I am under the impression that this can be done through custom policies though I may be mistaken.

1
Are you talking about application role? docs.microsoft.com/en-us/azure/architecture/…TiagoBrenck
Yes I’m talking about application roles, but I wish to edit them in the B2C interface as opposed to classic Azure AD.afriedman111
Yes, I’m taking about application roles, but I wish to edit them in the B2C interface as opposed to classic Azure AD. I’m using MSAL.js to pull an access token and do not want to log in a second time to classic Azure AD with ADAL.jsafriedman111
Currently there is no UI for application role. They might release it soon though. When I need to update it, I am doing it through the Manifest file.TiagoBrenck

1 Answers

0
votes

It depends a lot on how you plan to assign role to user in your system.

This answer summarizes three approaches you can potentially take. If you can enhance your question with what kind of roles are you looking for and how do you plan to assign them, you can get better responses.