code: func (u *UserV1) V2() *UserV2 {
  	return &UserV2{
  		Kind:    KindUser,
  		Version: V2,
  		Metadata: Metadata{
  			Name:      u.Name,
  			Namespace: defaults.Namespace,
  		},
  		Spec: UserSpecV2{
  			OIDCIdentities: u.OIDCIdentities,
  			Status:         u.Status,
  			Expires:        u.Expires,
  			CreatedBy:      u.CreatedBy,
  			Roles:          u.Roles,
  			Traits: map[string][]string{
  				teleport.TraitLogins:     u.AllowedLogins,
  				teleport.TraitKubeGroups: u.KubeGroups,
  			},
  		},
  	}
  }
docs: //V2 converts UserV1 to UserV2 format