Show members of group using grid

How to list all the members of a group and store them to a local variable to show them in a grid also select multiple members to delete and add the members, using groupmember function?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Priyanshu Bhavsar

    Use a!groupMembers(groupId) to store members in a local variable.
    Display members and enable selection using a grid with checkboxes.
    Use a!filter(members, selected) to get selected members for deletion.
    Loop through selected members and use a!removeGroupMembers(groupId, memberId) to delete each.
    Use a user picker and a!addMembersToGroup(groupId, userId) to add new members in a loop.
    Remember, security clearances are required for modifying groups, and error handling is recommended.

Children