Deprovision contacts from Google People groups

Artificial IntelligenceProductivitySales Enablement

What it does

When someone calls the remove contacts from group genie with a group ID and contact list, this automation validates both inputs. It removes the contacts from the Google People group and returns the result to the genie.

Who it's for

IT teams who manage Google Workspace contacts and need to bulk remove people from groups programmatically.

How teams use this

Bulk remove people from a team group

Remove a list of contacts from a Google People group when a team restructures or a project ends. The genie validates the inputs and handles the removal in one call without manual steps.

Offboard employees from shared groups

Call the genie from an HR workflow to remove departing employees from all their Google People groups at once. The validation ensures no bad data reaches Google People.

Add a dry run mode before removal

Include a preview step that shows which contacts will be removed before the genie executes the actual removal. Only proceed if someone confirms the list is correct.

How it works

  1. Start remove contacts from group. Someone calls the remove contacts from group genie with a group ID and a list of contact IDs to remove from that group.
  2. Validate the group ID exists. Check that the group ID from step 1 is present. If it is not, stop the job and return an error message to the caller so they know the request failed.
  3. Validate contact count does not exceed limit. Check that the contact list has 1000 or fewer IDs. If the list exceeds that limit, stop the job and return an error to the caller immediately.
  4. Remove contacts from the group. Remove the validated contacts from the Google People group using the remove contacts from group command with the validated group ID and contact list.
  5. Return the result to the genie. Send the response from Google People back to the genie so the caller sees whether the removal succeeded or failed and can take next steps.