Access collection from function with access disabled in rules

Hallo all,

I have disabled the access to a collection (“Deny all access”) in the rules section. Then I try to access the collection via a function. I set the authentication to “System” for this function.
I would expect to access the data in that collection, but it does not work. Any Idea, what is the problem?

Thanks