Export to Csv (analytics) give access forbidden

When trying to do Export to Csv
I get access forbidden report->serve
I noticed that report-> server was missing from my permision_item table, and I added it + permission_to_permission_item
But still notworking, anything else?

Ofer

Found the issue. I didn’t use the regular login page, rather a custom login page.
And I used loginByLoginId to create ks, but this didnt create a “priviliged” enough session for report->serve