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

1 vote
Answer accepted

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
Published Tuesday 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...

212 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