How do I disable the "Important changes to our user directories" banner in Confluence 5.7?

Has anyone figured out an easy way to disable the "Important changes to our user directories" banner that shows up to admins after upgrading to Confluence 5.7? I was hoping it might just be a plugin component that can be disabled but this does not appear to be the case. I could easily just add some CSS to hide it and some JS to trigger the dismiss button action which I will do if necessary. I would prefer to disable it completely or even just mark it as seen for users in the database directly. Here is Atlassian's reply when I filed a support ticket:

"After talking with our Senior Engineer we thought we could have a flag in the os_propertyentry is where we usually set such flag. We believe that banner might be hidden in a confluence jar in the <install-confluence>/confluence/web-inf."

 

userdirectorychange.PNG

 

<div class="aui-message aui-message-info info shadowed " id="aggregation-warning-msg"><p class="title"><strong>Important changes to our user directories</strong></p><p>Confluence 5.7 and later has changed how group memberships are determined for users that belong to multiple user directories (e.g. LDAP, Active Directory, Crowd). If you have critical permissions based on groups in Confluence, you should read and understand how the changes might affect your team.</p><p><button id="aggregation-read-more" class="aui-button aui-button-primary aggregation-acknowledge">Read More</button><button class="aui-button aui-button-link aggregation-acknowledge">Dismiss</button></p><!-- .aui-message --></div>

2 answers

1 accepted

1 vote
Brian Tom Atlassian Team Mar 05, 2015

Hi Paul,

It looks like that banner is supplied by a module inside the Confluence User Rest plugin, which is bundled with Confluence. That module can't be disabled within Confluence, but you can disable it through the database by modifying an entry in the bandana table that governs the state of plugins and their modules:

{code}

UPDATE BANDANA
SET BANDANAVALUE = '<map><entry><string>com.atlassian.confluence.plugins.confluence-user-rest:crowd-aggregation-warning</string><boolean>false</boolean></entry></map>'
WHERE BANDANAKEY = 'plugin.manager.state.Map';

{code}

Obviously, since this is a database modification, we recommend backing up your database, as a precaution.

Once the database change is made, you can either restart Confluence or flush the Confluence caches (at Confluence Admin > Cache Management > Flush all) to pull in fresh data, including that change.

Hope this helps!

Cheers,

Brian

This query will override any existing stored settings hence re-enabling any disabled plugins. Before you run it, get the current settings and add this new entry to the list.

The JS/CSS workaround for those that don't want to modify the database is to add the following code to the header of the Custom HTML page:

&lt;script&gt;
AJS.toInit(function() {
    if(AJS.$("#aggregation-warning-msg")) {
        AJS.$(".aggregation-acknowledge").not("#aggregation-read-more").click();
    }
});
&lt;/script&gt;
&lt;style type="text/css"&gt;
#aggregation-warning-msg {
    display:none;
}
&lt;/style&gt;

This is much better and easy to turn on and back off. I believe that those notices are useful to me the admin and the one who is upgrading. To all the others they usually do not make sense and cause a churn of unneeded questions. So I believe this works great, so before upgrading a remove the code and so I will see any new warnings and then before anyone logs in I turn it back off post upgrade. Thanks Paul!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked May 24, 2018 in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

604 views 18 16
View question

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you