-
Hi guys,
My name is Shaheem and I am new to the forum. I am trying to learn and integrate FusionAuth as the identity provider for my framework and so far it has been a excellent experience. Thumbs up guys
. Its definitely one of easiest Identity provider I have worked with and the API and documentation is excellent 
Anyways I have been having some issues with the PATCH command for roles "/api/application/{applicationId}/role/{roleId}". I am trying to update the role name and it simply does not update.
FusionAuth Version: 1.30.2
MultiTenancy Setup: Yes
API Key: Global Key - No Tenants selected

I am using .Net 5 (Web Api with Blazor wasm standalone) with direct FusionAuth REST API but I was able to replicate the issue with postman as well as shown below.
1 - Test to change the name of an existing role
- Existing name of the Role was "New Role"
- Tried to change the role name to "Test Role Updated"

2 - Test to update the role name and and other properties (IsDefault & description)
- Existing name of the Role was "New Role"
- Existing isDefault value was "false" (as in previous screenshot)
- There was no existing description

Question: Can role names be updated via api?
Anyways it would be great if you could have a look at the issue
Thanks
Shaheem -
@shaheem-aziz
Glad that you are enjoying FusionAuth!
The role name is not changeable. To change the name, you would have to remove the role and then re-add with a new name.
This only applies to the role name. The other fields (
isDefault,Description, etc), however, are changeable.Thanks,
Josh -
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login