code: func CreateUserAndRole(clt clt, username string, allowedLogins []string) (services.User, services.Role, error) {
  	user, err := services.NewUser(username)
  	if err != nil {
  		return nil, nil, trace.Wrap(err)
  	}
  	role := services.RoleForUser(user)
  	role.SetLogins(services.Allow, []string{user.GetName()})
  	err = clt.UpsertRole(role)
  	if err != nil {
  		return nil, nil, trace.Wrap(err)
  	}
  	user.AddRole(role.GetName())
  	err = clt.UpsertUser(user)
  	if err != nil {
  		return nil, nil, trace.Wrap(err)
  	}
  	return user, role, nil
  }
docs: // CreateUserAndRole creates user and role and assignes role to a user, used in tests