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

    updating user roles

    Scheduled Pinned Locked Moved Solved
    Q&A
    4
    6
    2.5k
    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 - Auth for devs, built by devs.
                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
                  • First post
                    Last post