func (s *IdentityService) GetUser(user string) (services.User, error) {
	u := services.TeleportUser{Name: user}
	data, err := s.backend.GetVal([]string{"web", "users", user}, "params")
	if err != nil {
		if trace.IsNotFound(err) {
			return &u, nil
		}
		return nil, trace.Wrap(err)
	}
	if err := json.Unmarshal(data, &u); err != nil {
		return nil, trace.Wrap(err)
	}
	return &u, nil
}
// GetUser returns a user by name
GetUser returns a user by name
// GetUser returns a user by name
func (s *IdentityService) GetUser(user string) (services.User, error) {
	u := services.TeleportUser{Name: user}
	data, err := s.backend.GetVal([]string{"web", "users", user}, "params")
	if err != nil {
		if trace.IsNotFound(err) {
			return &u, nil
		}
		return nil, trace.Wrap(err)
	}
	if err := json.Unmarshal(data, &u); err != nil {
		return nil, trace.Wrap(err)
	}
	return &u, nil
}
func ( s * IdentityService ) GetUser ( user string ) ( services . User , error ) { u := services . TeleportUser { Name : user } data , err := s . backend . GetVal ( [ ] string { " " , " " , user } , " " ) if err != nil { if trace . IsNotFound ( err ) { return & u , nil } return nil , trace . Wrap ( err ) } if err := json . Unmarshal ( data , & u ) ; err != nil { return nil , trace . Wrap ( err ) } return & u , nil }
GetUser returns a user by name
GetUser returns a user by name