Hi Manpreet,
There are API calls you can make to retrieve certain user details in the community, it would depend on the type of information you're looking to retrieve which API you may want to use.
You can view the Lithium data platform APIs documentation if you have access to that area of the community which outlines the API's available and goes into detail what calls you can make using API v1 and API v2.
If you cannot access the above documentation you'll need to raise a support request with your account manager to get access to this.
I hope this helps,