How to find Active users count, Inactive users count and whether users are assigned to the profile in Salesforce?
1. Execute the below code in Developer Console. for ( Profile objProfile : [ SELECT Name, ( SELECT Id, IsActive FROM Users ) FROM Profile ORDER BY Name ] ) ....