• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Can role name be changed using PATCH api

Scheduled Pinned Locked Moved Unsolved
Q&A
2
2
573
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    shaheem.aziz
    last edited by 4 Jan 2022, 14:53

    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
    FusionAuth-3.jpg

    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"

    FusionAuth-1.jpg

    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

    FusionAuth-2.jpg

    Question: Can role names be updated via api?

    Anyways it would be great if you could have a look at the issue

    Thanks
    Shaheem

    J 1 Reply Last reply 10 Jan 2022, 17:37 Reply Quote 0
    • J
      joshua @shaheem.aziz
      last edited by joshua 1 Oct 2022, 17:39 10 Jan 2022, 17:37

      @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

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post