List users admin page default number of users displayed?

Concerning "User management" in Confluence, on the List Users results page how can I change the default max. users displayed to be higher than 10? I would rather it default to 50 per page rather than 10...

An alternative I guess would be to add ?resultsPerPage=50 to the "Show all users" link but how can I do that?

(/admin/users/showallusers.action?reset=true&resultsPerPage=50)

3 answers

1 accepted

0 votes
Accepted answer

Works GREAT!

<script type="text/javascript">
AJS.toInit(function() {
AJS.$(".buttons > a[href^='showallusers']").attr('href', 'showallusers.action?reset=true&resultsPerPage=50');
});
</script>

One way to accomplish this would be to edit the link in the admin section in Confluence core and recompile Confluence.

A significantly easier approach would be to add a bit of JS to your Custom HTML:

&lt;script type="text/javascript"&gt;
AJS.toInit(function() {
    AJS.$(".aui-nav &gt; li &gt; [href='/confluence/admin/users/showallusers.action']").attr("href", "/confluence/admin/users/showallusers.action?resultsPerPage=50");
});
&lt;/script&gt;

Just be sure to update the context path to match your own, if you're not using /confluence.

Thanks for the tip! I was able to take your Custom HTML example and make it work for our needs. Just tweeked the selector a bit. Here's what I came up with that finally worked on the "Users" admin page:

<script type="text/javascript">
AJS.toInit(function() {
AJS.$(".buttons > a[href^='showallusers']").attr('href', 'showallusers.action?reset=true&resultsPerPage=50');
});
</script>

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,213 views 4 6
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