uaa/uaa.go
func (m *DefaultUAAManager) ListUsers() (*Users, error) {
	users := &Users{}
	lo.G.Debug("Getting users from Cloud Foundry")
	userList, err := m.Client.ListAllUsers("", "", "userName,id,externalId,emails,origin", "")
	if err != nil {
		return nil, err
	}

	lo.G.Debugf("Found %d users in the CF instance", len(userList))
	for _, user := range userList {
		lo.G.Debugf("Adding to users userID [%s], externalID [%s], origin [%s], email [%s], GUID [%s]", user.Username, user.ExternalID, user.Origin, Email(user), user.ID)
		users.Add(User{
			Username:   user.Username,
			ExternalID: user.ExternalID,
			Email:      Email(user),
			Origin:     user.Origin,
			GUID:       user.ID,
		})
	}
	return users, nil
}
func (m *DefaultUAAManager) ListUsers() (*Users, error) {
	users := &Users{}
	lo.G.Debug("Getting users from Cloud Foundry")
	userList, err := m.Client.ListAllUsers("", "", "userName,id,externalId,emails,origin", "")
	if err != nil {
		return nil, err
	}

	lo.G.Debugf("Found %d users in the CF instance", len(userList))
	for _, user := range userList {
		lo.G.Debugf("Adding to users userID [%s], externalID [%s], origin [%s], email [%s], GUID [%s]", user.Username, user.ExternalID, user.Origin, Email(user), user.ID)
		users.Add(User{
			Username:   user.Username,
			ExternalID: user.ExternalID,
			Email:      Email(user),
			Origin:     user.Origin,
			GUID:       user.ID,
		})
	}
	return users, nil
}
func ( m * DefaultUAAManager ) ListUsers ( ) ( * Users , error ) { users := & Users { } lo . G . Debug ( " " ) userList , err := m . Client . ListAllUsers ( " " , " " , " " , " " ) if err != nil { return nil , err } lo . G . Debugf ( " " , len ( userList ) ) for _ , user := range userList { lo . G . Debugf ( " " , user . Username , user . ExternalID , user . Origin , Email ( user ) , user . ID ) users . Add ( User { Username : user . Username , ExternalID : user . ExternalID , Email : Email ( user ) , Origin : user . Origin , GUID : user . ID , } ) } return users , nil }
//ListUsers - returns uaa.Users
ListUsers - returns uaa . Users