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

Nigel

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>
  #end
#end

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 vote
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.

Cheers

Thomas

Thanks everyone for all your helpful comments.

Cheers.

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
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

72 views 0 4
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