You can control which kind of user has access to a site. Note that Confluence and Jira permissions still apply to all spaces , and projects and portals on your site.
Head to the Refined Administration.
Click Sites in the left-hand menu.
Pick the site you want to work with.
Click on the Permissions tab.
...
Support (only available if you have added a JSM portal project to your site) - Customers who are logged in to JSM can view your site, as well as your organisation’s employees with an Atlassian account. This setting is useful if you have a support site on which only customers with a JSM account can submit a ticket.
...