Create or update a user

Creates a new user or updates an existing user with the specified roles and authentication settings.