            ["AG12345-PROV" "AG10000-PROV"] (concat AG12345-acls AG10000-acls)
            ["guest" "registered" "AG12345-PROV" "AG10000-PROV"] all-acls))
 
-    (testing "Search ACLs by permitted group with specific permission"
+    (testing "Search ACLs by permitted group with options"
+      (are [permitted-groups options acls]
+           (let [response (ac/search-for-acls (u/conn-context)
+                                              (merge {:permitted-group permitted-groups} options))]
+             (= (acls->search-response (count acls) acls)
+                (dissoc response :took)))
+
+           ["GUEST"] {"options[permitted_group][ignore_case]" true} guest-acls
+           ["GUEST"] {"options[permitted_group][ignore_case]" false} []))
+
+    (testing "Search ACLs by group permission"
       (are3 [group-permissions acls]
            (let [[query-map _] (reduce (fn [[m count] [group permission]]
                                          [(assoc-in m

        registered-acls [acl2 acl5 acl8]
        AG12345-acls [acl3 acl6]
        AG10000-acls [acl8]
        all-acls (concat guest-acls registered-acls AG12345-acls)]
    (u/wait-until-indexed)


           ["guest" "read"] []

           "Registered read"
           ["registered" "read"] read-acls

           "Registered create"
           ["registered" "create"] [acl5 acl8]
