Hi @arunpatidar ,
I have one question about this requirement. Query AEM DAM via /bin/querybuilder.json and show the result.
Though we are talking about restricted access but what is the guarantee 3rd party user always query about /content/dam/ , if they want they can query like the below also -
...