How to get a list of spaces that are accessible by anonymous users

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

To get a list of spaces that are accessible by anonymous users, from the database.

Solution

(info) 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);

(warning) 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

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.