If a user (e.g. a JIRA user) is not licensed to use Confluence, they cannot view any Confluence content (from JIRA or Service Desk for instance) - even if that content is available to anonymous users. They currently have to log out before they can see the content.
- Enable anonymous access to your Confluence Cloud site and space.
- Open an incognito window and go to a page within the anonymous space
- On the top-right corner, click on the Log in icon ( ) and authenticate with a user that does not have a Confluence license, but has access to the site
- You should be redirected back to the anonymous space's page
You can see the page
Access restricted message is displayed
No workaround available.