Resolved issue getting groups