• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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 27 May 2022, 16:10

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

    A 1 Reply Last reply 29 May 2022, 20:36 Reply Quote 0
    • P
      paterik4
      last edited by paterik4 24 Oct 2023, 11:37

      @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 29 May 2022, 20:36

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

        1 Reply Last reply Reply Quote 0
        • S
          support 0
          last edited by 29 May 2022, 22:59

          @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 D 2 Replies Last reply 30 May 2022, 07:14 Reply Quote 2
          • A
            audrew31 @support 0
            last edited by 30 May 2022, 07:14

            @support-0 thank you

            1 Reply Last reply Reply Quote 0
            • D
              dan @support 0
              last edited by 30 May 2022, 17:08

              @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 24 Oct 2023, 11:37

                @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
                • D dan has marked this topic as solved on 24 Oct 2023, 23:08
                • First post
                  Last post