Search for pages restricted to a user

Is there any way to search for all content (pages and blog posts) for which a defined user has viewing and/or editing rights for a complete confluence instance?

I know about the space admin function but what I'd need is a search string to serach for all contnetn tah user xyz has viewing or editing rights (of course minus the ones every user has rights for)

1 answer

1 accepted

This widget could not be displayed.

It is possible to get the information with a user macro. Here is a similiar one, which lists all pages in every space having group permissions:

## @noparams
#set ( $pageManager = $action.getPageManager() )
#set( $allSpaces = $spaceManager.getAllSpaces() )
<table class="confluenceTable"> 
      <th class="confluenceTh">Space</th>
      <th class="confluenceTh">Page</th>
      <th class="confluenceTh">Group Permission</th>
#foreach($space in $allSpaces)
    #set( $allPagesInSpace = $pageManager.getPages($space, true) )
    #foreach($page in $allPagesInSpace)
        #set( $permissions = $page.getPermissions() )
          <td class="confluenceTd">$</td>
          <td class="confluenceTd">#contentLink2($page false false)</td>
          <td class="confluenceTd">
              #foreach($permission in $permissions)
 <li><em>$permission.type</em> to

It can be adapted with minimal effort to work for blogpost and userPermissions as well. Be advised, that depending on your server hardware and size of your Confluence instance, running these kinds of macros will put the system under heavy load for quite some time, so use with caution or on a separate test server.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

504 views 7 6
Join discussion

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