> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Add or Remove Contacts from Group

- Component: `appmixer.googleContacts.core.AddorRemoveContactsfromGroup`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.googleContacts 1.1.2](https://connectors.appmixer.com/connector/appmixer.googleContacts/1.1.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.googleContacts/1.1.2/component/appmixer.googleContacts.core.AddorRemoveContactsfromGroup>

Adds or removes contacts from a specified contact group.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Contact Group ID (`contactGroupId`) | text | The resource name of the contact group to modify, e.g. 'contactGroups/friends' |
| Add Contacts (`addContacts`) | text | List of contact IDs to add to the group. Multiple IDs can be added when separated by comma. |
| Remove Contacts (`removeContacts`) | text | List of contact IDs to remove from the group. Multiple IDs can be added when separated by comma. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Total Updated Contacts (`totalUpdatedContacts`) | number | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.googleContacts.core.AddorRemoveContactsfromGroup",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Adds or removes contacts from a specified contact group.",
  "version": "1.0.0",
  "private": false,
  "label": "Add or Remove Contacts from Group",
  "auth": {
    "service": "appmixer:googleContacts",
    "scope": [
      "https://www.googleapis.com/auth/contacts"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "contactGroupId": {
            "type": "string"
          },
          "addContacts": {
            "type": "string"
          },
          "removeContacts": {
            "type": "string"
          }
        },
        "required": [
          "contactGroupId"
        ]
      },
      "inspector": {
        "inputs": {
          "contactGroupId": {
            "type": "text",
            "tooltip": "The resource name of the contact group to modify, e.g. 'contactGroups/friends'",
            "label": "Contact Group ID",
            "index": 0
          },
          "addContacts": {
            "type": "text",
            "tooltip": "List of contact IDs to add to the group. Multiple IDs can be added when separated by comma.",
            "label": "Add Contacts",
            "index": 1
          },
          "removeContacts": {
            "type": "text",
            "tooltip": "List of contact IDs to remove from the group. Multiple IDs can be added when separated by comma.",
            "label": "Remove Contacts",
            "index": 2
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Total Updated Contacts",
          "value": "totalUpdatedContacts",
          "schema": {
            "type": "number",
            "example": 5
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
