Remove unused groups variable from get_ids() which was causing a compiler warning.