Hello Rakesh,
Good to hear that your deployment/runtime issue is resolved.
I never tried this scenario you mentioned...Get-list-of-files-having-permission-to-logged-in-user..
But below is somethin that can guide you further: -
http://scn.sap.com/thread/1983946
It talks about setting permission to a KM resource, probably you can do r&d further to "get" the permission of a KM resource.
Best luck.
Thanks & Regards,
Amey