How to get a list of spaces that are accessible by anonymous users
To get a list of spaces that are accessible by anonymous users, from the database.
The following queries have been tested in MySQL and PostgreSQL:
SELECT SPACENAME FROM SPACES WHERE SPACEID IN (SELECT SPACEID FROM SPACEPERMISSIONS WHERE PERMTYPE = 'VIEWSPACE' AND PERMGROUPNAME IS NULL AND PERMUSERNAME IS NULL AND PERMALLUSERSSUBJECT IS NULL);
Please notice that the space will only be effectively accessible by anonymous users if the Site has that setting enabled. For more info on how to enable anonymous access at the site level, please check this document: