Adds one or more users to an existing group as participants. Users already in the group are reported under alreadyAddedIds.
mutation {
addUsersToGroup(
groupId: "group-uuid"
userIds: ["user-uuid-1", "user-uuid-2"]
) {
addedIds
alreadyAddedIds
failedIds
}
}You can also use ref instead of id for both the group and users:
mutation {
addUsersToGroup(
groupRef: "group-sales"
userRefs: ["EMP-001", "EMP-002"]
) {
addedIds
alreadyAddedIds
failedIds
}
}mutation {
removeUsersFromGroup(
groupId: "group-uuid"
userIds: ["user-uuid-1"]
) {
removedIds
alreadyRemovedIds
failedIds
}
}mutation {
addManagersToGroup(
groupId: "group-uuid"
userIds: ["user-uuid-1"]
) {
response {
succeededIds
failedIds
}
}
}mutation {
removeManagersFromGroup(
groupId: "group-uuid"
userIds: ["user-uuid-1"]
) {
response {
succeededIds
failedIds
}
}
}addUsersToGroup(
groupId: UUID, groupRef: String,
userIds: [UUID!], userRefs: [String!]
): AddUsersToGroup
removeUsersFromGroup(
groupId: UUID, groupRef: String,
userIds: [UUID!], userRefs: [String!]
): RemoveUsersFromGroup
addManagersToGroup(
groupId: UUID, groupRef: String,
userIds: [UUID!], userRefs: [String!]
): AddManagersToGroup
removeManagersFromGroup(
groupId: UUID, groupRef: String,
userIds: [UUID!], userRefs: [String!]
): RemoveManagersFromGroupid and ref can be used for groups (groupId/groupRef) and users (userIds/userRefs).updateOrCreateUser with addUsersToGroup using ref fields for reliable matching.