get_user_by_email
Retrieve user details using their email address to manage access, workflows, and permissions within Alteryx servers via the AYX-MCP-Wrapper interface.
Instructions
Get a user by their email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes |
Implementation Reference
- src/tools.py:371-377 (handler)Core implementation of the get_user_by_email tool. Calls the Alteryx users API to retrieve user by email and formats the response with pprint.pformat. Handles ApiException errors.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 for get_user_by_email. Decorated with @self.app.tool() to register it with the MCP server, delegating execution to self.tools.get_user_by_email.@self.app.tool() def get_user_by_email(email: str): """Get a user by their email""" return self.tools.get_user_by_email(email)