because you asked my directly, this microflow should contain all the information you need. It retrieves the user role you want to add to the user, adds it to the associated userrole list and commits the user.
You can do this in a microflow by retrieving the current user account and then retrieving the user role you want to give that account. Then you can use the change activity for the account object and pick the user role association. If you want the new user role to replace the exisitng user role, in the change activity of the association, make sure its set to “set”. If you want to add the new user role and keep the existing role, use “add”. Once this is done the new user role won’t take effect until the user logs out and back in again.
Hope this helps!
with my team we are struggling with the same problem. we need after clicking a button as an admin, to change the user role as a superuser role. we are trying and we cant figure it out