func GetNonAdminUser(cl *client.Client) (*graylog.User, error) {
	users, _, err := cl.GetUsers()
	if err != nil {
		return nil, err
	}
	for _, user := range users {
		if user.Username != adminName {
			return &user, nil
		}
	}
	return nil, nil
}
// GetNonAdminUser returns a user whose name is not "admin".
GetNonAdminUser returns a user whose name is not "admin".
// GetNonAdminUser returns a user whose name is not " admin " .
func GetNonAdminUser(cl *client.Client) (*graylog.User, error) {
	users, _, err := cl.GetUsers()
	if err != nil {
		return nil, err
	}
	for _, user := range users {
		if user.Username != adminName {
			return &user, nil
		}
	}
	return nil, nil
}
func GetNonAdminUser ( cl * client . Client ) ( * graylog . User , error ) { users , _ , err := cl . GetUsers ( ) if err != nil { return nil , err } for _ , user := range users { if user . Username != adminName { return & user , nil } } return nil , nil }
GetNonAdminUser returns a user whose name is not "admin".
GetNonAdminUser returns a user whose name is not " admin " .