How to get a list of spaces that are accessible by anonymous users
Purpose
To get a list of spaces that are accessible by anonymous users, from the database.
Solution
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 the anonymous access setting enabled. For more info on how to enable anonymous access at the site level, please check this document:
Last modified on Mar 21, 2024
Powered by Confluence and Scroll Viewport.