Skip to main content
Skip table of contents

getGroupName

Versionshinweise

24.4

Code

CODE
String getGroupName(IEmployeeSyncGroup employeeSyncGroup)

Beschreibung

Liest den Gruppen-Namen aus der IEmployeeSyncGroup

Parameter

  • employeeSyncGroup - Das IEmployeeSyncGroup Objekt

Rückgabe

Der Gruppen-Name als String

Beispiele

GROOVY
List<IEmployeeSyncUser> syncUsers = EmployeeSyncUtils.getUsers();
List<String> userSyncIds = new ArrayList<>();
for(IEmployeeSyncUser syncUser : syncUsers)
{
  String msg = EmployeeSyncUtils.getUserLastName(syncUser) + "\n";
  List<IEmployeeSyncGroup> syncGroups = EmployeeSyncUtils.getUserGroups(syncUser);
  for (IEmployeeSyncGroup syncGroup : syncGroups)
  {
    msg += EmployeeSyncUtils.getGroupSyncId(syncGroup) + "\n";
  }
  ScriptUtils.debug("group name: " + msg);
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.