How can I get the list of active and inactive users without using any plugin?
Discussion posts and replies are publicly visible
I'm not sure this is generally possible without the use of a plug-in. Can you share what use case you have that requires you to not use any plug-ins?
A list of all users is simple. Create a group and add all users via a membership rule. Then query that group using a!groupMembers().
No OOTB solution for the inactive users.