Export CSV Users / Organization - API/Backend Script?

I would like to export users / organizations as separate CSV files.

This kinda already done with sample of Zammad data through the Import GUI interfaces under

Setting > Users > Import > Example CSV file for download

or

Setting > Organization > Import > Example CSV file for download

Screenshot

image

So if it is possible I would like to type/run some sort command to export all users or organization to CSV file.

This is not going to be needed much if at all but handy to be able to export if it required. As in most cases you use the Zammad backup command.

Just some of my own notes on researching a possible solution.

Guessing I can just use the SQL backend to export instead of any Zammad backend api.

Have not tested this still just in research stage.

Warning might be better methods