How to diff users between AEM instances

Objective

How do we compare users and groups between AEM instances?

Steps

There are some ACS Commons tools that could help in exporting users from AEM in order to perform a diff:

  1. Use this library to export the users and groups - AEM Exporter

  2. Or this tool to export json of the /home folder - JCR Compare

You would have to do some post-processing on the json to make it so you can compare it though.