def user_in_any_of_groups(_user, _groups):
    """
    Check if a user belongs to any of the groups
    :param _user: A user instance
    :param _groups: A list of groups to check
    :return: True if in any of the groups
    """
    _user_groups = _user['groups']
    for _group in _groups:
        if _group in _user_groups:
            return True
    return False
