Getting a list/array of all organic groups a user is part of I have been searching online for awhile and so far I have been unable to find any og functions that will give me an array or list of all groups a user is a member of.  Does such a function exist?  If not, is there a sql query I could run that would give me this?
Assuming you are using Drupal 7 and latest OG you can use og_get_groups_by_user().


  Get the group IDs of all the groups a user is an approved member of.