get_all_users
Retrieve a complete list of Alteryx server users via the AYX-MCP-Wrapper to manage user access and permissions effectively.
Instructions
Get the list of all users of the Alteryx server
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.py:355-361 (handler)The main handler function in AYXMCPTools class that fetches all users from the Alteryx server API using users_api.users_get_users() and returns a pretty-formatted response or error.def get_all_users(self): """Get the list of all users of the Alteryx server""" try: api_response = self.users_api.users_get_users() return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:231-234 (registration)Registers the 'get_all_users' tool with the FastMCP app using @self.app.tool() decorator, which delegates execution to self.tools.get_all_users().@self.app.tool() def get_all_users(): """Get the list of all users of the Alteryx server""" return self.tools.get_all_users()