A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi ATAPATTU Shrinika,
Thanks for your updates, I’m sorry this method I provided might work for Modern SharePoint experience instead of Classic one. Meanwhile, there is a REST API in SharePoint that exposes plenty of information about users, lists and document libraries, which might meet your requirement. However, since it contains code programming which is not supported in this community.
Thus, to better troubleshot your issue, I would like to confirm which SharePoint are you using?
For SharePoint Online, you can post your thread in SharePoint Online TechNet Forum.
For SharePoint Server, please post a new thread in SharePoint On-Perm MSDN Community.
Hope you will receive a dedicated help on your concern.
Thanks for understanding and cooperation.
Best regards,
Gloria Li