Greetings, @Lokesh-Suthar
I'm not 100% sure this is what you're looking for, but if you just want to see the users that are in the /etc/passwd file and not the system and service accounts, you can just grep for the accounts with a login shell.
Assuming all users are set to /bin/bash by default
dlowrie@linux1:~$ grep /bin/bash /etc/passwd
root:x:0:0:root:/root:/bin/bash
dlowrie:x:1000:1000:Daniel Lowrie,,,:/home/dlowrie:/bin/bash
If the system is using shells other than bash, you can just switch "/bin/bash" for whatever shell your system uses.
Another way would be to exclude entries whose shell is set to "nologin" or "/bin/false"
dlowrie@linux1:~$ grep -v "nologin\|/bin/false" /etc/passwd
This might not catch every non-user account, but you can just adjust the regular expression(regex) to exclude that as well.
For example, when I ran the previous command I got the following output...
dlowrie@linux1:~$ grep -v "nologin\|/bin/false" /etc/passwd
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
dlowrie:x:1000:1000:Daniel Lowrie,,,:/home/dlowrie:/bin/bash
sync is not a standard user, so I need to remove it from my search results. So I will just modify my regex to include "/bin/sync"
dlowrie@linux1:~$ grep -v "nologin\|/bin/false\|/bin/sync" /etc/passwd
root:x:0:0:root:/root:/bin/bash
dlowrie:x:1000:1000:Daniel Lowrie,,,:/home/dlowrie:/bin/bash
Now I only get user accounts. So just keep modifying your search until you get the desired results.
I hope that helps!
Cheers,
Daniel