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>
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
<script> AJS.toInit(function() { if(AJS.$("#aggregation-warning-msg")) { AJS.$(".aggregation-acknowledge").not("#aggregation-read-more").click(); } }); </script> <style type="text/css"> #aggregation-warning-msg { display:none; } </style>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.