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
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
| Name | Type | Description |
|---|---|---|
| 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 -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"}' result = client.call("google-search-console", "add_user", {"property":"sc-domain:example.com","email":"seo@agency.example","permission":"full"}) const result = await cotlet.call('google-search-console', 'add_user', {"property":"sc-domain:example.com","email":"seo@agency.example","permission":"full"}); cotlet call google-search-console add_user --data '{"property":"sc-domain:example.com","email":"seo@agency.example","permission":"full"}' Example response
{
"property": "sc-domain:example.com",
"email": "seo@agency.example",
"permission": "full",
"status": "added",
"non_owner_users": 8
}