Can I pass two roles to the function get_users?

I don’t think it’s possible to do it with the get_users function. From what the Codex implies, you cannot pass arrays to the role argument. But it should be fairly easy to code your way out of that limitation.

Try this:

function filter_two_roles($user) {
    $roles = array('academic','student');
    return in_array($user->roles[0], $roles);
}

$users = get_users('fields=all_with_meta');
// Sort by last name
usort($users, create_function('$a, $b', 'if($a->last_name == $b->last_name) { return 0;} return ($a->last_name > $b->last_name) ? 1 : -1;'));
// Iterate through users, filtering out the ones which don't have the roles we want 
foreach(array_filter($users, 'filter_two_roles') as $user) {
    // Your code
}

Asking for users with the argument field=all_with_meta is very powerful, and WP seems to map indexes which aren’t even shown when doing a print_r on the user object. That is why we can sort them using first or last names, as shown above (I actually took the code from an older answer of mine).

Let us know how it goes?