Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I put a space message (on all pages) to a certain user group in Confluence

Eduardo Llanos December 18, 2014

I want a certain an internal group to see information on all pages in a space. How do I accomplish that? Can I use Site Layouts and set a certain parameter to make sure that it is only the internal group that sees the information. 

 

ConfluenceSpaceInfo.png

2 answers

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 19, 2014

May be you can do it by customising the PageLayout

I tried to hack something quickly and it worked...

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

to put in a PageLayout before body (for non documentation theme spaces)

<div id="main-content" class="wiki-content">
  $body
 </div>

But, the code will also work for Confluence space layouts / site layouts 

0 votes
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 19, 2014

The Public Annoucement Service add-on can do this. It's free too.

Eduardo Llanos December 21, 2014

Hi David, Thanks for the answer. The plugin can set an application level message but not on space level which is what I am looking for, but it is an useful plugin!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events