I need the list of files that a specific user has permission to access them.
If a web service do this for me it's great!
I don't believe what you would like to do is possible. You would need to determine which "principals" (users) where included in which policies, and then determine which policies were applied to which documents.
Using the APIs ( http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/index.html ) you can search on the Policies, and get the Polciy Entries (which in turn contain the Principals), but there is no API that I am aware of to allow you to search documents based on the policy that was applied to them.
When a policy is applied to a document, a unique "license id" is created. You can use the API's (com.adobe.livecycle.rightsmanagement.client.infomodel) to get the licence (getID), then the getDocumentName to retrieve the name of the document associated with the license.
I got the License ID and Policy Name of my file on Content Space.
With my policy name I got PolicySpecs, but in this class don't have Principals list, have only group names.
I don't find a way to get all Groups of a specific user, can I do that? Or with a Group Name how can I get all users associated to it?
In LiveCycle, users and groups are handled with "User Manager". There is a "getGroupMemberships" method that is part of the com.adobe.idp.um.api.infomodel class. It retrieves a set of Group objects indicating those groups to which the principal (user) belongs.
Or you could just use this to Inspect the policy-protected document: