code: func (i *Identity) CheckAndSetDefaults() error {
  	if i.Username == "" {
  		return trace.BadParameter("missing identity username")
  	}
  	if len(i.Groups) == 0 {
  		return trace.BadParameter("missing identity groups")
  	}
  	return nil
  }
docs: // CheckAndSetDefaults checks and sets default values