This requirement originates from Casbin's BatchEnforce API: https://github.com/casbin/casbin/issues/710 But it can benefit all other projects which want to use this feature