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

For Atlassian eyes only

This article is Not Validated and cannot be shared with customers.

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

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

Last modified on Sep 16, 2022

Was this helpful?

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