Zum Hauptinhalt gehen

How to fetch all users from an external group?

Kommentare

3 Kommentare

  • Zendesk API User
    Author: Yamini - 5/12/2022 11:24
    projectGroups = project.getGroups(); for(group:projectGroups){ if( group.getName().contains("E0553-CMEA-CADHB-Editorial") ){ users = group.getUsers(); // I get list empty here, but if this group is added to any page/page ref the rights for the members of these group work! for(i=0;i<users.length;i++){ context.logInfo("user name is : "+users[i].getLoginName()); usernames = "test"; usernames = usernames+users[i].getLoginName(); } } }
    0
  • Zendesk API User
    Author: hoebbel - 5/12/2022 12:47

    Hello Yamini,

    The cause of the behavior is that an external group doesn't know its members at all. Instead, when a user logs in, the system checks which external groups he or she fits into and assigns them to him or her.
    So you have to do it the other way around and ask the users to which external groups they belonged at the last login. (<user>.getExternalGroups())
    ATTENTION: the data is of course more or less outdated, depending on when the user last logged into FirstSpirit and what changes have been made to the external user management (LDAP?) since then.
    Alternatively, the corresponding information can also be determined in the external user management system by checking there (outside of FirstSpirit) to which users the definition of the external group applies.

    Best regards
    Holger

    0
  • Zendesk API User
    Author: schin2 - 2/9/2024 14:39

    Hi, how does this correspond to workflows? We are currently trying to implement a release workflow and would like to select external users for a review of the selected element. Even tough the external groups can be selected, the individual users cannot.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.