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

This widget could not be displayed.
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.

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

868 views 8 13
Read article

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