def get_groupids(userid):
    """ Return all the group-related principal identifiers for a user with
        the user principal identifier ``userid`` as a sequence.  If no user
        exists under ``userid``, return ``None``."""
