All skills
googleworkspace avatar

/gws-people

@705fb0e
by Google Workspacegoogleworkspace/cli31k stars
1,856

Google People: Manage contacts and profiles.

Use this Skill: https://skilld.dev/gh/googleworkspace/cli/gws-people

This session only. Nothing lands on disk.

SKILL.md

β‰ˆ14 tokens always: the name and description. β‰ˆ1.6k when used: this file.

people (v1)

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

gws people <resource> <method> [flags]

API Resources

contactGroups

  • batchGet β€” Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names.
  • create β€” Create a new contact group owned by the authenticated user. Created contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
  • delete β€” Delete an existing contact group owned by the authenticated user by specifying a contact group resource name. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
  • get β€” Get a specific contact group owned by the authenticated user by specifying a contact group resource name.
  • list β€” List all contact groups owned by the authenticated user. Members of the contact groups are not populated.
  • update β€” Update the name of an existing contact group owned by the authenticated user. Updated contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
  • members β€” Operations on the 'members' resource

otherContacts

  • copyOtherContactToMyContactsGroup β€” Copies an "Other contact" to a new contact in the user's "myContacts" group Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
  • list β€” List all "Other contacts", that is contacts that are not in a contact group. "Other contacts" are typically auto created contacts from interactions. Sync tokens expire 7 days after the full sync. A request with an expired sync token will get an error with an google.rpc.ErrorInfo with reason "EXPIRED_SYNC_TOKEN". In the case of such an error clients should make a full sync request without a sync_token.
  • search β€” Provides a list of contacts in the authenticated user's other contacts that matches the search query. The query matches on a contact's names, emailAddresses, and phoneNumbers fields that are from the OTHER_CONTACT source. IMPORTANT: Before searching, clients should send a warmup request with an empty query to update the cache. See https://developers.google.com/people/v1/other-contacts#search_the_users_other_contacts

people

  • batchCreateContacts β€” Create a batch of new contacts and return the PersonResponses for the newly Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
  • batchUpdateContacts β€” Update a batch of contacts and return a map of resource names to PersonResponses for the updated contacts. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
  • createContact β€” Create a new contact and return the person resource for that contact. The request returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
  • deleteContactPhoto β€” Delete a contact's photo. Mutate requests for the same user should be done sequentially to avoid // lock contention.
  • get β€” Provides information about a person by specifying a resource name. Use people/me to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.
  • getBatchGet β€” Provides information about a list of specific people by specifying a list of requested resource names. Use people/me to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.
  • listDirectoryPeople β€” Provides a list of domain profiles and domain contacts in the authenticated user's domain directory. When the sync_token is specified, resources deleted since the last sync will be returned as a person with PersonMetadata.deleted set to true. When the page_token or sync_token is specified, all other request parameters must match the first call. Writes may have a propagation delay of several minutes for sync requests. Incremental syncs are not intended for read-after-write use cases.
  • searchContacts β€” Provides a list of contacts in the authenticated user's grouped contacts that matches the search query. The query matches on a contact's names, nickNames, emailAddresses, phoneNumbers, and organizations fields that are from the CONTACT source. IMPORTANT: Before searching, clients should send a warmup request with an empty query to update the cache. See https://developers.google.com/people/v1/contacts#search_the_users_contacts
  • searchDirectoryPeople β€” Provides a list of domain profiles and domain contacts in the authenticated user's domain directory that match the search query.
  • updateContact β€” Update contact data for an existing contact person. Any non-contact data will not be modified. Any non-contact data in the person to update will be ignored. All fields specified in the update_mask will be replaced. The server returns a 400 error if person.metadata.sources is not specified for the contact to be updated or if there is no contact source.
  • updateContactPhoto β€” Update a contact's photo. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
  • connections β€” Operations on the 'connections' resource

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws people --help

# Inspect a method's required params, types, and defaults
gws schema people.<resource>.<method>

Use gws schema output to build your --params and --json flags.

Source: SKILL.md on GitHub

No alerts17d5 checks Β· Risk SAFE
  • Gen Agent Trust Hub17d

    The skill is a productivity tool for managing Google Workspace contacts and profiles using the 'gws' CLI. It is generally safe, but like any tool that processes user-generated content (contact biographies, notes, names), it presents a surface for indirect prompt injection.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW Β· No issues

  • Runlayer6mo

    1 file scanned Β· No issues

  • ZeroLeaks5mo

    Score: 93/100 Β· 2 sections analyzed

Signed by skilld at 705fb0e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Activeupdated 6 months ago
Other metadata
metadata
{
  "version": "0.22.5",
  "openclaw": {
    "category": "productivity",
    "requires": {
      "bins": [
        "gws"
      ]
    },
    "cliHelp": "gws people --help"
  }
}
  • CLI
  • google-workspace
  • contacts
  • people-api
  • google-people
  • productivity

README badge

README badge for googleworkspace/cli/gws-people

Provides a CLI interface to the Google People API for managing Google Workspace contacts, contact groups, and profiles. Supports creating, updating, deleting, and searching contacts and groups through the `gws` command-line tool.

Generated from the current SKILL.md.

What authentication does this skill require?
This skill requires the gws CLI tool and depends on the gws-shared skill for auth setup and global flags. See the gws-shared SKILL.md for authentication details.
Can I search contacts with this skill?
Yes. The skill supports searchContacts (for grouped contacts), search on otherContacts, and searchDirectoryPeople (for domain directory). Google recommends sending a warmup request with an empty query before searching to update the cache.
Does this skill support batch operations?
Yes. It includes batchCreateContacts, batchUpdateContacts, and batchGet methods. Mutate requests for the same user should be sent sequentially to avoid latency and failures.
What contact sources does this skill work with?
The skill handles contacts from multiple sources: CONTACT source (grouped contacts), OTHER_CONTACT source (auto-created contacts from interactions), and domain directory profiles.

Generated from the current SKILL.md. These answers refresh after source changes.