Remove user

Remove a user from a property. Owners only.

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

write Confirm

Removes a user in Settings > Users and permissions; the person loses access to the property at once. A delegated owner can be removed here, but a verified owner has to be removed by removing their verification token from the site, so the call reports it instead. 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: remove_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 Email of the user to remove, as shown by list_users.

Request

cURL
curl -X DELETE "https://cotlet.dev/api/v1/google-search-console/users?property=property&email=jane%40example.com" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("google-search-console", "remove_user", {"property":"property","email":"jane@example.com"})
Node.js
const result = await cotlet.call('google-search-console', 'remove_user', {"property":"property","email":"jane@example.com"});
CLI
cotlet call google-search-console remove_user --data '{"property":"property","email":"jane@example.com"}'

Example response

JSON

{
  "property": "sc-domain:example.com",
  "email": "jane@oldagency.example",
  "status": "removed",
  "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.