def METHOD_NAME(yaml_data):
    osgid_lookup = {}
    for contact in yaml_data.values():
        if 'CILogonID' in contact:
            osgid_lookup[contact['CILogonID']] = contact
    return osgid_lookup