Skip to main content
Glama

deactivate_user

Deactivate a user account in Alteryx Server by providing the user ID to disable access and manage permissions.

Instructions

Deactivate a user account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYes

Implementation Reference

  • Core handler function in AYXMCPTools class that implements the logic for deactivating a user: checks if user exists, calls the Alteryx Users API users_deactivate_user, and formats the response.
    def deactivate_user(self, user_id: str): """Deactivate a user 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_deactivate_user(user_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
  • MCP tool registration using @self.app.tool() decorator in the register_tools method of the MCP server, which delegates execution to the tools.deactivate_user method.
    @self.app.tool() def deactivate_user(user_id: str): """Deactivate a user account""" return self.tools.deactivate_user(user_id)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jupiterbak/AYX-MCP-Wrapper'

If you have feedback or need assistance with the MCP directory API, please join our Discord server