Add user

Give a Google account access to a property as owner, full or restricted user. Owners only.

POST https://cotlet.dev/api/v1/google-search-console/users

write Confirm

Adds a user in Settings > Users and permissions. The email must be a valid Google Account; an email group cannot be added. Permission is owner (a delegated owner), full or restricted. A property can have at most 100 non-owner users. You must be an owner of the property, or of its parent property. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: add_user
NameTypeDescription
property string required string Property as Search Console lists it: sc-domain:example.com for a Domain property, https://example.com/ for a URL-prefix property.
email string required string Google Account email of the new user.
permission enum required enum owner, full or restricted.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/google-search-console/users \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"property":"sc-domain:example.com","email":"seo@agency.example","permission":"full"}'
Python
result = client.call("google-search-console", "add_user", {"property":"sc-domain:example.com","email":"seo@agency.example","permission":"full"})
Node.js
const result = await cotlet.call('google-search-console', 'add_user', {"property":"sc-domain:example.com","email":"seo@agency.example","permission":"full"});
CLI
cotlet call google-search-console add_user --data '{"property":"sc-domain:example.com","email":"seo@agency.example","permission":"full"}'

Example response

JSON

{
  "property": "sc-domain:example.com",
  "email": "seo@agency.example",
  "permission": "full",
  "status": "added",
  "non_owner_users": 8
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.