1

In IBM Connections, it's possible to add a group (defined in an LDAP directory or similar) as an activity member.
Is it possible to do this with the Social Business Toolkit Java SDK? If so, how?

I can see in the Javadocs that there's an ActivityService.addMember method.
This requires a Member instance, and constructing a Member seems to require a user id.

Searching for group names with the SearchService never returns any results, and I can't see any other way to find the user id of a group.

Edit:
Related note from one of my colleagues: Connections also allows adding Communities as Activity members, and we also can't see how to do that in the SBT.

Scott Leis
  • 2,810
  • 6
  • 28
  • 42

1 Answers1

1

According to the documentation the Member category field controls the type of the activity member.

To create a Member group you should leave the contributor email empty, the contributor name should be the group name and the userid should be mapped to the group id

My test env has no groups so I can't confirm with groups directly, but setting as category "community" and userid a community Uuid I managed to add a community as a member to an activity.

Caveat Emptor:

When I tried to retrieve the single member from connections using the community member id I got instead the full list of activity members. That also happens when using the REST API by itself with the Location URL returned with the 201 Created result, so it's something happening from the connections side. But as long as creation is concerned, this should be possible.

Lorenzo Boccaccia
  • 6,041
  • 2
  • 19
  • 29
  • Thanks. We'll try with adding a community tomorrow. How would we get the group id to create group members? Is that assigned by Connections, or by the LDAP directory? As stated in my original question, the SBT `SearchService` doesn't return groups, so doesn't seem to provide a way to find a group id. – Scott Leis Apr 06 '14 at 07:24
  • I created a defect corresponding to this on the SBTSDK. it currently does not exist in the Java API. – Paul Bastide Apr 14 '14 at 13:19