HowCanIMakeContentAppearOnlyForASpecificGroup

Last modified by Vincent Massol on 2023/02/13

Question How can I make content appear only for a specific group?
Answer

In syntax 2.0:

{{velocity}}
#if($xwiki.getUser().isUserInGroup('XWiki.PrivateGroup'))
Put the private content here.
#end
{{/velocity}}

In syntax 1.0:

#if($xwiki.getUser().isUserInGroup('XWiki.PrivateGroup'))
Put the private content here.
#end

Get Connected