we can add a user to a role with the api, one to add a user we need the username or the role name, depending on the endpoint we use. To remove a user from a role we don't need the role name, but the RoleId is required.
I would like the option to assign a role to the user by using the Role ID instead, just like the way we add a group to the user.
Documentation links: