Skip to main content

Users: Search Tool

Usage

All Portia tools using API endpoints that require OAuth are built with plug and play authentication support. They use Portia client credentials including client ID, client name and redirect URL. Such tools will raise a Action Clarification with an OAuth link as the action URL. The portia.wait_for_ready() method must be used in this scenario: Portia's OAuth server will listen for the authentication result and resolve the concerned clarification, allowing your plan run to resume again.

For more on this, please visit to the section on running Portia tools ().

Configure your Zendesk tools with Portia AI

You will need to provide the subdomain of your Zendesk account to use with Portia AI. This is because Zendesk creates a unique subdomain for each account.

Configure access in Portia AI

  1. Log into your Portia dashboard ↗
  2. Navigate to the Manage Org tab.
  3. Enter the subdomain of your Zendesk account. Your subdomain is the part of your Zendesk URL before the .zendesk.com domain. For example, if your Zendesk URL is https://portialabs.zendesk.com, your subdomain is portialabs.

You are now ready to call Zendesk tools on our cloud!

Tool details

Tool ID: portia:zendesk:users:search

Tool description: Returns an array of users who meet the search criteria. Returns a maximum of 100 users. This may include (but is not limited to) the user's name, contact information, role, permissions, locale, organization, and other information.

Args schema:

{
"description": "Input schema for ZendeskSearchUsersTool.",
"properties": {
"query": {
"description": "The Zendesk domain syntax language for searching users. Supported property key words are name, email, role, organization, and phone. Multiple properties can be used in the same query. Any search terms containing spaces must be enclosed in double quotes. Examples: - name:\"John Smith\"\n-email:john.smith@thecompany.com\n-role:admin organization:The Company",
"title": "Query",
"type": "string"
}
},
"required": [
"query"
],
"title": "ZendeskSearchUsersToolSchema",
"type": "object"
}

Output schema:

('application/json', 'application/json: Payload from API containing a list of users in Zendesk matching the provided query.')