Change get gids by name method
Reviewer: Dan Jao