Hi,
I have to prepare a report where I have to get folder path, users/groups and permissions on each of the folders and file in a document library. The library contains several nested folders and most of the folders have unique permissions. I am using SharePoint Rest API to get folders and permission.
If I loop through each of the folder and send request for permission so it is taking longer and page becomes irresponsive.
Please suggest a solutions.

Tuhin PaulPosted Feb 28, 2023, 2:21 AM
Hi Rajesh,
When dealing with large document libraries with nested folders and unique permissions, it can be challenging to obtain the necessary data in an efficient manner. Here are my few suggestions to improve the performance of your code:
By implementing one or more of these suggestions, you can improve the performance of your code and make your report generation process more efficient.