Use this "GetUsersByAppsWise" server action and it allows you to download the Excel file in which you can have your environment users specific to the modules and the specific to your applications. it means all the users with their roles and in which application and module they belong to.
It includes the user name, role name, application name, module name, and application description.