I found error error Error: Action must be defined to build a permission query.

I got the same error… Do you already got an solution?