Can role name be changed using PATCH api
-
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 -
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