func (s *IdentityService) GetUsers() ([]services.User, error) {
	keys, err := s.backend.GetKeys([]string{"web", "users"})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	out := make([]services.User, len(keys))
	for i, name := range keys {
		u, err := s.GetUser(name)
		if err != nil {
			return nil, trace.Wrap(err)
		}
		out[i] = u
	}
	return out, nil
}
// GetUsers returns a list of users registered with the local auth server
GetUsers returns a list of users registered with the local auth server
// GetUsers returns a list of users registered with the local auth server
func (s *IdentityService) GetUsers() ([]services.User, error) {
	keys, err := s.backend.GetKeys([]string{"web", "users"})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	out := make([]services.User, len(keys))
	for i, name := range keys {
		u, err := s.GetUser(name)
		if err != nil {
			return nil, trace.Wrap(err)
		}
		out[i] = u
	}
	return out, nil
}
func ( s * IdentityService ) GetUsers ( ) ( [ ] services . User , error ) { keys , err := s . backend . GetKeys ( [ ] string { " " , " " } ) if err != nil { return nil , trace . Wrap ( err ) } out := make ( [ ] services . User , len ( keys ) ) for i , name := range keys { u , err := s . GetUser ( name ) if err != nil { return nil , trace . Wrap ( err ) } out [ i ] = u } return out , nil }
GetUsers returns a list of users registered with the local auth server
GetUsers returns a list of users registered with the local auth server