func LoadKeyCloakIdentities(appl application.Application, request *goa.RequestData, users []*account.User) (*app.UserArray, error) {
	data := make([]*app.IdentityData, len(users))
	for i, user := range users {
		identity, err := loadKeyCloakIdentity(appl, user)
		if err != nil {
			return nil, err
		}
		appIdentity := ConvertUser(request, identity, user)
		data[i] = appIdentity.Data
	}
	return &app.UserArray{Data: data}, nil
}
// LoadKeyCloakIdentities loads keycloak identies for the users and converts the users into REST representation
LoadKeyCloakIdentities loads keycloak identies for the users and converts the users into REST representation
// LoadKeyCloakIdentities loads keycloak identies for the users and converts the users into REST representation
func LoadKeyCloakIdentities(appl application.Application, request *goa.RequestData, users []*account.User) (*app.UserArray, error) {
	data := make([]*app.IdentityData, len(users))
	for i, user := range users {
		identity, err := loadKeyCloakIdentity(appl, user)
		if err != nil {
			return nil, err
		}
		appIdentity := ConvertUser(request, identity, user)
		data[i] = appIdentity.Data
	}
	return &app.UserArray{Data: data}, nil
}
func LoadKeyCloakIdentities ( appl application . Application , request * goa . RequestData , users [ ] * account . User ) ( * app . UserArray , error ) { data := make ( [ ] * app . IdentityData , len ( users ) ) for i , user := range users { identity , err := loadKeyCloakIdentity ( appl , user ) if err != nil { return nil , err } appIdentity := ConvertUser ( request , identity , user ) data [ i ] = appIdentity . Data } return & app . UserArray { Data : data } , nil }
LoadKeyCloakIdentities loads keycloak identies for the users and converts the users into REST representation
LoadKeyCloakIdentities loads keycloak identies for the users and converts the users into REST representation