Can’t access PHP array inside script localization from javascript

get_user_meta returns an array, so to get an array containing an array of each user’s data, use [] to append:

foreach( $users as $user ){
    $veik[] = get_user_meta( $user->ID );
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)