def sharedWithRemote(eh_object, remote_users, user_map):
    """
    Method that checks to see if the specified object was shared with
    deleted remote users. If so, returns a sharing dictionary
    with the SAML user account names.

        Parameters:
            eh_object (dict): Object metadata
            remote_users (list): The names of deleted remote user accounts
            user_map (list): User metadata

        Returns:
            updated (dict): A sharing dictionary with SAML user account names
    """
    sharing = eh_object["sharing"]
    updated = {"users": {}}
    if sharing != None:
        users_shared = sharing["users"]
        for user in users_shared:
            if user in remote_users:
                user_index = remote_users.index(user)
                saml_name = user_map[user_index]["saml_username"]
                updated["users"][saml_name] = sharing["users"][user]
    if updated["users"]:
        return updated
    else:
        return None