-Log in to SQL Server where we have CRM databases <org>_MSCRM and MSCRM_CONFIG. We have 4 different tables from where we will have to fetch the user entries.
-SystemUserBase,
-SystemUserOrganizations,
-SystemUser and then
-Organization...