reset_user_password
Reset a user's password on Alteryx Servers by specifying their user ID using the AYX-MCP-Wrapper server interface.
Instructions
Reset a user's password by their ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes |
Implementation Reference
- src/tools.py:485-495 (handler)Core handler implementation that retrieves the user details and calls the Alteryx server API to reset the user's password, handling errors appropriately.def reset_user_password(self, user_id: str): """Reset a user's password by their ID""" try: user = self.users_api.users_get_user(user_id) if not user: return "Error: User not found" api_response = self.users_api.users_reset_user_password(user_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:281-284 (registration)MCP server tool registration using the FastMCP @app.tool() decorator. This thin wrapper delegates execution to the AYXMCPTools.reset_user_password method.@self.app.tool() def reset_user_password(user_id: str): """Reset a user's password by their ID""" return self.tools.reset_user_password(user_id)