Paging function for users and repositories