$Nith$, thanks for answering. That would be helpful if we had control or full access to LDAP directory. But we had to create hybrid domain and organize our groups inside Livecycle user/group hierarchy. We cannot rely on OU field in LDAP and we cannot change it (it's read only for our livecycle application).
I hope there is some Java API call for that...
Sorry, I wasn't clear enough. I don't need to (can't) access LDAP so I don't need LDAP API, I was hoping for API to access Livecycle User <==> Group relationships which are stored in LC database.
Anyway, thanks for trying $Nith$!
1 person found this helpful
What about the getDirectGroupMemberships() method from the Principal class.
getDirectGroupMemberships() method from the Principal class is good suggestion, thanks for that, but I ran into some other problems which I managed to solve in the end.
I created a Livecycle component that should give me as output list of parent groups and I can get that with suggested method but I have problem with input. User class that is used in Workspace in UserLookup service is: com.adobe.idp.dsc.um.lookup.datamodel.User. That class is not contained in any of SDK client jars. I don't even know which methods it has nor is it in any way connected with suggested com.adobe.idp.um.api.infomodel classes (User or Principal).
If I pass only common name or id as a parameter, I didn't immediately know how to get Principal object from this. Searching through API I found DirectoryManagerServiceClient which has exactly what I needed: findPrincipal(String oid)