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 Posts 2 Posters 1.4k Views
    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

      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

      joshuaJ 1 Reply Last reply
      Reply Quote 0
      • joshuaJ
        joshua @shaheem.aziz
        last edited by joshua

        @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
        • danD dan moved this topic from Q&A on
        • danD 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
        • First post
          Last post