Avatar

Level 2

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)

Thanks!

Zeljko