reset_user_password
Reset passwords for Alteryx Server users by specifying their user ID to restore account access.
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-494 (handler)The core implementation of the reset_user_password tool. It checks if the user exists, calls the Alteryx API to reset the password, and returns the formatted response or error.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 tool registration using the @app.tool decorator, which exposes the tool and delegates execution to the underlying tools.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)