How can I assign roles to a user? You can assign a role to a user while creating the new user or by editing the user details.