It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Force accept company policies

Fernando Morales Feb 13, 2012


is there a posibility to force a User to accept special company policies before using confluence? Something like the What's new Pop-up, but without the close-option.



1 answer

1 accepted

10 votes
Answer accepted
JamieA Feb 13, 2012

Update: I've written a simple plugin to display terms and conditions when an editor is invoked, as in my use case I only need contributors to accept Ts and Cs. This is better than the solution below, as you can't continue editing without accepting, and it doesn't waste screen real estate. Walking the floors I noticed that many people never bothered accepting.

You will need to edit the Ts & Cs text, then deploy. Code here: It will require maven to build.

Older solution below:

We use the following code in the announcement banner, which makes people acknowledge Ts&Cs every 30 days. You could change the 30 to 30000 if you wanted it to be a one-off. It's a bit hacky but has kept various compliance depts of my back. You need jquery.cookie.js which you can find on the interwebs.

<script type="text/javascript" language="javascript" src="/confluence/includes/js/jquery.cookie.js"></script>

<div id="idiotBanner" style="display:none">
    <table style="width: 100%;border: 2px solid #FF0000" cellpadding="2">
                <h3 style="text-align:center">Important Information </h3>

                <p style="text-align:center">Because unrestricted wiki pages are visible to all **** users, please make
                    sure that all pages/spaces are
                    <a href="http://****/Confluence+Acceptable+Usage+and+how+to+permission+pages+appropriately">
                        restricted to appropriate user groups</a>. Access to sensitive information (e.g.
                    login credentials, privileged information) should be strictly controlled and
                    those pages restricted to blah blah blah.

                <p style="text-align:center"><a href="#" onclick="hideIdiotBanner()">Acknowledge and dismiss</a></p>

<script type="text/javascript" language="javascript">
    jQuery(document).ready(function() {
        if (jQuery.cookie('hideIdiotBanner') != 'true') {

    function hideIdiotBanner() {
        jQuery.cookie("hideIdiotBanner", "true", { expires: 30, path: '/confluence' });


Dieter Feb 13, 2012
Vote up for the cookie name :)
JamieA Feb 13, 2012

If I told you the story of why I had to do this, you'd be surprised I hadn't thought up a much worse name ;-)

Joe Clark Atlassian Team Feb 14, 2012

Don't forget to tell your users about the behaviour and contents of your cookie storage if you want to avoid prosecution in the EU! :-p

JamieA Feb 14, 2012

It's not accessible to the public but good point! <searches for the Atlassian policy on same ;-) >

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,293 views 8 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you