updating user roles
-
I couldn't find any information on how can I update user roles via API programmaticaly?
-
@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 theuserId
and aRegistrationRequest
object.patchRegistration
got fixed here:
https://github.com/FusionAuth/fusionauth-issues/issues/441 -
@audrew31 I would be glad to have assist on that please
-
@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.
-
@support-0 thank you
-
@support-0 Thanks for helping out!
-
@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 theuserId
and aRegistrationRequest
object.patchRegistration
got fixed here:
https://github.com/FusionAuth/fusionauth-issues/issues/441 -