def get_policy_group_id(cloud, group_name):
    """
    Gets the policy group id with group name
    :param cloud: Cloud API object
    :param group_name: Policy group name
    :return: Group id
    """
    group_id = None
    r = cloud.iam.get_policy_groups(expected_status_code=200)
    resp = r.json()
    for group in resp['data']:
        if group['name'] == group_name:
            group_id = group['id']
            break

    return group_id