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

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

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:

1 2 3 4 5 6 7 8 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:

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.