get_user_by_email
Retrieve user details from Alteryx Servers using an email address to manage user information and access.
Instructions
Get a user by their email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes |
Implementation Reference
- src/tools.py:371-378 (handler)Core handler implementation in AYXMCPTools class that queries the Alteryx server users API to retrieve user details by email address.def get_user_by_email(self, email: str): """Get a user by their email""" try: api_response = self.users_api.users_get_users(email=email) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:241-244 (registration)MCP tool registration decorator and wrapper function that delegates to the AYXMCPTools instance's get_user_by_email method.@self.app.tool() def get_user_by_email(email: str): """Get a user by their email""" return self.tools.get_user_by_email(email)