So I'm currently using the normal PHP library for crowd (http://pear.php.net/packages/Services_Atlassian_Crowd) and wanted to try and get the groups that are attributed to a user, but am lost as to how to get nested groups. For example:
Group: test-group (Direct member: test-group-2)
Group: test-group-2 (Direct member: test-user)
User: test-user
Now, whenever I do a call to findGroupMemberships('test-user'), I get 'test-group-2' back but not 'test-group' How do I make it so that all parent groups are also included when I do a group call?
Community moderators have prevented the ability to post new answers.
If anyone sees this, the issue is that the PHP library for crowd from pear uses SOAP and the SOAP client does not allow pulling nested groups. You need to switch from a SOAP client to a REST client. I ended up having to create my own library in order to incorporate REST.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.