Trying to remove contact from google group: "must be in the format people/<person_id>"

When a status changes in airtable, I am trying to remove the group someone is in on google contacts. However, I am getting this error:

I have it set up like to search for the google contact by the users email address in airtable
(as an aside, searching by phone number returns zero results, even when the string is exactly the same as what is in google contacts)

But I am stuck on how to set up the “add/remove contacts from a group” module. It seems that “contact ID” in the remove contact section doesn’t do the job, hence the error. But google contacts doesn’t seem to store a “<person_id>” field.

I’m sure I’m missing something very obvious, but i’ve been bashing my head against a wall for over an hour on this!

As an aside, does anyone know why the search query of the airtable field for phone number isn’t working to pull the google contacts? Email does work, but searching by phone number will be more reliable. Make automatically updates the airtable phone field from the google contacts “canonical form” phone number to keep these in sync.

Just going to bump this again!

Welcome to the Make community!

You probably have to do something like this using the map and get functions:

{{first(map(65.memberships; "contactGroupMembership.contactGroupId"; "contactGroupMembership.contactGroupResourceName"; "contactGroups/myContacts"))}}

(copy-paste the above into the field, or type it exactly as shown)

Change contactGroups/myContacts to the Contact Group Resource Name, as displayed in the output bundle of the previous module (NOT how it looks in Google Contacts).

One question per thread please.

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

Hmm, this doesn’t seem to be working. I think I’ve done what you’ve suggested:

However, I get a bundle validation error
Validation failed for 1 parameter(s). Missing value of required parameter ‘contactGroup’." I’m clearly missing enough fundamental understanding here.

Apologies. And thank you, I’ll try put some deeper learning time into this over the weekend.

You’ll need to provide an output bundle for module 75.

Also, your Remove Contacts field is missing a character.

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.

This will allow others to better assist you. Thanks! P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

Thanks! I’ve put the output bundle below.


[
    {
        "id": "c4754048157767930694",
        "etag": "%EiQBAgMFBgcICQoLDA0ODxATFBUWGR8hIiMkJSYnLjQ1Nz0+P0AaAQIiDGVyN2o0NDZ1SlM4PQ==",
        "updateTime": "2025-05-14T19:52:01.906Z",
        "displayName": "Test Make",
        "familyName": "Make",
        "givenName": "Test",
        "displayNameLastFirst": "Make, Test",
        "unstructuredName": "Test Make",
        "PhotoUrl": "https://lh3.googleusercontent.com/cm/AGPWSu9UtYeqjo6hB3kiJaSl44b-nKUeMZhm4lfeYmpZPsJWujrVxQDjSSlSMgW87xHxJe6TLw=s100",
        "emailAddresses": [
            {
                "metadata": {
                    "primary": true,
                    "source": {
                        "type": "CONTACT",
                        "id": "41f9c59c88db9346"
                    }
                },
                "value": "testmake@fake.com"
            }
        ],
        "phoneNumbers": [
            {
                "metadata": {
                    "primary": true,
                    "source": {
                        "type": "CONTACT",
                        "id": "41f9c59c88db9346"
                    }
                },
                "value": "022123456"
            }
        ],
        "memberships": [
            {
                "metadata": {
                    "source": {
                        "type": "CONTACT",
                        "id": "41f9c59c88db9346"
                    }
                },
                "contactGroupMembership": {
                    "contactGroupId": "6a09981c8e52f742",
                    "contactGroupResourceName": "contactGroups/6a09981c8e52f742"
                }
            },
            {
                "metadata": {
                    "source": {
                        "type": "CONTACT",
                        "id": "41f9c59c88db9346"
                    }
                },
                "contactGroupMembership": {
                    "contactGroupId": "myContacts",
                    "contactGroupResourceName": "contactGroups/myContacts"
                }
            }
        ],
        "__IMTLENGTH__": 1,
        "__IMTINDEX__": 1
    }
]

Looks like the last two fields require an array.

You can use this in the last field

{{add(emptyarray; "people/" + 75.id)}}

(copy-paste the above into the field, or type it exactly as shown)

e.g.:

Output:

You can also directly paste the Contact Group ID into the field: 6a09981c8e52f742

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

1 Like

Curiously it only seems to work when I only use the contact group ID in the contact field, rather than the formula you initially suggested. With the formula suggested, I get " Validation failed for 1 parameter(s).

  • Missing value of required parameter ‘contactGroup’."

But if I simply use the contactGroup ID in the field, without map & get functions, it seems to work fine.

But thank you so much for helping solve my immediate need! And thank you for sharing your explanation, I can see now how you realised the module needed those last two fields expressed as an array. Thank you!

1 Like