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

    updating user roles

    Scheduled Pinned Locked Moved Solved Q&A
    6 Posts 4 Posters 6.2k 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.
    • A
      audrew31
      last edited by

      I couldn't find any information on how can I update user roles via API programmaticaly?

      A 1 Reply Last reply
      Reply Quote 0
      • P
        paterik4
        last edited by paterik4

        @dan Please mark this as Solved, I personally got confused at first and didn't click on it when I Googled this issue.

        So in the end the final solution for Client calls is the patchRegistration function call with the userId and a RegistrationRequest object.

        patchRegistration got fixed here:
        https://github.com/FusionAuth/fusionauth-issues/issues/441

        1 Reply Last reply
        Reply Quote 0
        • A
          audrew31 @audrew31
          last edited by

          @audrew31 I would be glad to have assist on that please

          1 Reply Last reply
          Reply Quote 0
          • S
            support 0
            last edited by

            @audrew31 using the "Registrations" endpoint and updating the user's roles:

            See here in docs: https://fusionauth.io/docs/v1/tech/apis/registrations#update-a-user-registration

            The roles for a user are specific to the registration to an application. Hope that helps.

            A danD 2 Replies Last reply
            Reply Quote 2
            • A
              audrew31 @support 0
              last edited by

              @support-0 thank you

              1 Reply Last reply
              Reply Quote 0
              • danD
                dan @support 0
                last edited by

                @support-0 Thanks for helping out!

                --
                FusionAuth - Identity Without Constraints
                https://fusionauth.io

                1 Reply Last reply
                Reply Quote 0
                • P
                  paterik4
                  last edited by paterik4

                  @dan Please mark this as Solved, I personally got confused at first and didn't click on it when I Googled this issue.

                  So in the end the final solution for Client calls is the patchRegistration function call with the userId and a RegistrationRequest object.

                  patchRegistration got fixed here:
                  https://github.com/FusionAuth/fusionauth-issues/issues/441

                  1 Reply Last reply
                  Reply Quote 0
                  • danD dan has marked this topic as solved on
                  • 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