Does Confluence support personalisation via Active Directory

Hi, it is possible to configure Confluence up so it displays a different dashboard or content that is dependant on the users AD entry. i.e All members of the FInance AD group will see the FinanceDashboard, the Legal Team AD group will only see the Legal dashboard etc.

I don't need any detailed instructions at this stage just an idea of whether its possible.

Many thanks


3 answers

You can add logic like this on your landing page. A User macro will do the trick.

Something like:

#set ($userGroups = $userAccessor.getGroupNames($action.authenticatedUser))
#set ($groupToMatch = "confluence-administrators")
#foreach ($group in $userGroups)
  #if($group == $groupToMatch)
    <p>Hello admin!</p>

See the "<p>Hello admin!</p>", you can replace it with a JS redirect or even a HTTP redirect to the page you want.

I like the simplicity for this approach, but need to know exact details on how to accomplish adding this to the default dashboard in Confluence. Thanks in advance for yoru help!

:) Confluence Admin -> Layouts -> Site Layouts -> Global Layout choose "create custom", unless you have something custom already and then (as the original requirement to have different content for different user groups) I will go with redirects (preparing own "dashboard" like pages for each group) and will insert the above code to (for example) the line bore the following: <div class="pagebody"> that's it :)

Cool So then you make a call to the user macro you created after the 'pagebody' line. What is the syntax for the call to the user macro?

Actually, if I go with a custom global layout I will not use a user macro there, but will put the code (velocity) as is.

0 votes
Thomas Schlegel Community Champion Jan 30, 2015

Hi Nigel,

there is also a commercial plugin that should do the trick: Custom Dashboards. We use it and it works well.



Thanks everyone for all your helpful comments.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

276 views 2 10
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