How to add roles members to users with wix code

I would like to use a function to add a role to a user but for the moment I only see the getRoles function.

Is there a function to modify or add a user’s role?

Thanks