                                               :granule_identifier    {:access_value {:include_undefined_value true
                                                                                      :min_value               1
                                                                                      :max_value               50}}})
-             _              (echo-util/grant (urs-context)
+             _              (echo-util/grant (system/context)
                                              [{:user_type   :registered
                                                :permissions [:read]}]
                                              :catalog_item_identity

   (with-redefs
    [jobs/send-email mock-send-email]
     (testing "Tests subscriber-id filtering in subscription email processing job"
       (let [user1-group-id (echo-util/get-or-create-group (urs-context) "group1")
           ;; User 1 is in group1
             user1-token    (echo-util/login (urs-context) "user1" [user1-group-id])
             _              (echo-util/ungrant (urs-context)
                                               (-> (access-control/search-for-acls (urs-context)
                                                                                   {:provider      "PROV1"
                                                                                    :identity-type "catalog_item"}
                                                                                   {:token "mock-echo-system-token"})
                                                   :items
                                                   first
                                                   :concept_id))
             _              (echo-util/ungrant (urs-context)
                                               (-> (access-control/search-for-acls (urs-context)
                                                                                   {:provider      "PROV2"
                                                                                    :identity-type "catalog_item"}
                                                                                   {:token "mock-echo-system-token"})
                                                   :items
                                                   first
                                                   :concept_id))
             _              (echo-util/grant (urs-context)
                                             [{:group_id    user1-group-id
                                               :permissions [:read]}]
                                             :catalog_item_identity

           (ingest/delete-concept concept))
         (subscription-util/create-subscription-and-index coll1 "test_sub_prov1" "user2" "provider=PROV1")
         (is (= 2
                (->> (system/context)
                     (jobs/email-subscription-processing)
                     (map #(nth % 1))
                     flatten
