Monday, May 19, 2014

Update group membership of a user

Use the following steps to synchronize group membership of any user, connected to external directory services (LDAP, eDirectory) :

var sec = Packages.com.lombardisoftware.client.delegate.SecurityDelegateFactory.getInstance().newInstance();
sec.updateGroupMembership(tw.local.userId);

2 comments:

  1. This is a LiveConnect call to an internal Teamworks method. As such it is not part of any officially documented API and not covered by your product support. It also jeopardizes your code's upward compatibility (i.e. proper functioning after a product upgrade). You should use this only as a last resort...

    ReplyDelete
  2. This is a LiveConnect call to an internal Teamworks method. As such it is not part of any officially documented API and not covered by your product support. It also jeopardizes your code's upward compatibility (i.e. proper functioning after a product upgrade). You should use this only as a last resort...

    ReplyDelete