Jira Service Desk gives the ability to link to a KB area in Confluence. Our KB articles require authentication in order to view them, anonymous access cannot be given as we cannot have our competitors seeing these articles. In this scenario we are setting up Confluence so there is no global anonymous access and the Unlicensed Access is enabled, in JSD that means the "All active users and customers can access the KB without a Confluence license" option is selected. With this setup the first time a customer selects a KB article from the search results they are prompted to login to Confluence, using the same login as JSD they are able to do that, although inconvenient we are fine with this. At this point the customer sees the Confluence page but can also see our comments, the ellipsis which gives options like Page History, Page Information, Resolved Comments .... and there is a Dashboard breadcrumb at the top of the page. We are looking to hide/disable these options so the customer ONLY sees the content of the page. Can anyone recommend how to accomplish this with NO plugins? Here are things that I have found but do not provide a full solution.
Javascript that can to in the Custom HTML area that will check if the user is anonymous and if so hide these areas, as our customers have to login they are simply unlicensed not anonymous, I haven't found any javascript that can test for unlicensed users or users not in any groups
<script type="text/javascript">
AJS.toInit(function(){
if (AJS.params.remoteUser == ''){
AJS.$('#action-menu-link').hide();
AJS.$('#comments-section').hide();
}
});
</script>
In the space's Look and Feel > Stylesheet area we can add the following to hide these areas, but that impacts our staff who create the documents who will need to use comments and inline comments, page history etc.
#action-menu-link {
display:none !important;
}
#breadcrumbs {
display:none !important;
}
#comments-section {
display:none !important;
}