...
A sitemap can only be generated for a public site and includes the Confluence all pages on your site that are available to anonymous users. When you have created a sitemap for a public site and later switch the access permissions to private or support, the sitemap is no longer accessible and the site is no longer crawled by search engines.
...