Connect Miro SCIM to Claude: Sync Directory and Group Memberships
A technical guide to building and deploying a secure Miro SCIM MCP server for Claude. Learn how to automate user provisioning and group management via AI.
If you need to connect Miro SCIM to Claude to automate user provisioning, audit group memberships, or manage identity lifecycles at scale, you need a Model Context Protocol (MCP) server. This server acts as the translation layer between Claude's function calls and Miro's System for Cross-domain Identity Management (SCIM) REST APIs. You can either build and maintain this infrastructure yourself, or use a managed integration platform like Truto to dynamically generate a secure, authenticated MCP server URL.
If your team uses ChatGPT, check out our guide on connecting Miro SCIM to ChatGPT or explore our broader architectural overview on connecting Miro SCIM to AI Agents.
Giving a Large Language Model (LLM) read and write access to a highly structured identity provider layer like Miro SCIM is an engineering challenge. You must handle complex authorization schemas, map highly nested JSON structures to MCP tool definitions, and deal with strict SCIM filtering rules. Every time Miro updates its SCIM spec or schema attributes, you have to update your server code, redeploy, and validate the integration.
This guide breaks down exactly how to use Truto to generate a secure, managed MCP server for Miro SCIM, connect it natively to Claude Desktop, and execute complex identity management workflows using natural language.
The Engineering Reality of the Miro SCIM API
A custom MCP server is a self-hosted integration layer. While the open MCP standard provides a predictable way for models to discover tools over JSON-RPC, the reality of implementing it against specialized B2B APIs is painful. Miro SCIM is built strictly for enterprise identity management, meaning it enforces rigid standards on data structures, operations, and permissions.
If you decide to build a custom Miro SCIM MCP server, here are the specific integration challenges you will face:
Complex PatchOp Requirements for Updates
Unlike a typical REST API where a PUT or PATCH request accepts a simple key-value payload, SCIM relies on a standardized Operations array. To update a user's department or active status, you cannot simply pass {"active": false}. You must construct a payload that specifies the operation type (e.g., replace), the target path, and the new value. An LLM has no intuition for this syntax. Without strict, auto-generated JSON schemas forcing the LLM to format requests correctly, it will hallucinate flat JSON objects that the Miro API will immediately reject.
Strict Filter Expressions and Query Constraints
Miro SCIM does not support generic search endpoints. To find a user, you must use precise SCIM filter expressions passed in the filter query parameter. For example, finding a user by email requires exactly filter=userName eq "alex@example.com". If the LLM omits the quotes, uses == instead of eq, or targets an unindexed field, the query fails. You must define tool schemas that explicitly instruct the LLM on exactly which fields are filterable and what operators are permitted.
Silent License Constraints and Privilege Blocks Miro enforces business logic around user deletion and license demotion directly at the API level. You cannot downgrade a user's license tier via SCIM. Furthermore, you cannot delete a guest-role user or the last admin of a team via standard SCIM operations. A custom MCP server must anticipate these edge cases, parse the opaque 400-level errors, and format them into context the LLM can actually understand and relay to the human operator.
Handling Rate Limits and the IETF Spec
When automating bulk user provisioning via an AI agent, you will inevitably hit API rate limits. It is a critical architectural decision not to absorb these limits inside the integration layer. Truto does not retry, throttle, or apply backoff on rate limit errors. When the Miro SCIM API returns an HTTP 429, Truto passes that error directly to the caller. Truto normalizes upstream rate limit info into standardized headers (ratelimit-limit, ratelimit-remaining, ratelimit-reset) per the IETF spec. The caller (the AI agent or the orchestration layer) is responsible for implementing retry logic and backoff. This ensures the agent maintains an accurate understanding of its execution context and doesn't get trapped in a hanging request.
Generating the Managed MCP Server
Instead of building a JSON-RPC server from scratch and handwriting SCIM schemas, Truto dynamically derives MCP tool definitions directly from the integration's documented resources. Tools are only exposed if they have accompanying JSON schemas, acting as a strict quality gate for the LLM.
There are two ways to generate a Miro SCIM MCP server in Truto: via the UI or programmatically via the API.
Method 1: Via the Truto UI
For IT administrators setting up an integration for internal use, the UI provides the fastest path to a working server.
- Log into your Truto dashboard and connect a Miro SCIM instance (an Integrated Account).
- Navigate to the Integrated Accounts page and select your Miro SCIM connection.
- Click the MCP Servers tab.
- Click Create MCP Server.
- Select your desired configuration (e.g., restrict to
readmethods only, or set an expiration date). - Copy the generated MCP server URL (e.g.,
https://api.truto.one/mcp/<TOKEN>).
Method 2: Via the Truto API
If you are building an AI agent platform and need to provision MCP servers for your customers dynamically, you can use the Truto API. The API validates the configuration, generates a secure, hashed token stored in a distributed key-value store, and returns a ready-to-use URL.
Make a POST request to /integrated-account/:id/mcp:
curl -X POST https://api.truto.one/api/integrated-account/YOUR_ACCOUNT_ID/mcp \
-H "Authorization: Bearer YOUR_TRUTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Miro SCIM Onboarding Agent",
"config": {
"methods": ["read", "write"]
},
"expires_at": "2026-12-31T23:59:59Z"
}'The response returns the server URL containing the cryptographic token that securely links the endpoint to this specific Miro SCIM tenant.
{
"id": "mcp_12345",
"name": "Miro SCIM Onboarding Agent",
"config": {
"methods": ["read", "write"]
},
"expires_at": "2026-12-31T23:59:59Z",
"url": "https://api.truto.one/mcp/a1b2c3d4e5f6..."
}Connecting the MCP Server to Claude
Once you have the Truto MCP URL, connecting it to Claude requires zero additional code. Because the token encapsulates the routing, authentication, and integration metadata, the URL is entirely self-contained.
Method A: Via the Claude UI (or ChatGPT)
If you are using Claude for Web or ChatGPT with custom connector support:
- In Claude, navigate to Settings -> Integrations -> Add MCP Server.
- Paste your Truto MCP URL.
- Click Add.
Claude will immediately perform the MCP handshake, request the list of available tools, and load the Miro SCIM schemas into its context window.
Method B: Via the Claude Desktop Config File
If you are running Claude Desktop locally or managing configuration as code, you can connect the server via Server-Sent Events (SSE).
Open your claude_desktop_config.json file and add the Truto MCP endpoint using the official MCP SSE transport command:
{
"mcpServers": {
"miro_scim": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sse",
"--url",
"https://api.truto.one/mcp/a1b2c3d4e5f6..."
]
}
}
}Restart Claude Desktop. The agent is now fully authenticated and ready to execute SCIM operations.
High-Leverage Hero Tools for Miro SCIM
Truto automatically translates Miro's SCIM documentation into strictly typed JSON schemas. When Claude issues a tools/call command, Truto flattens the arguments and routes them to the correct query parameters and body payloads based on these schemas.
Here are the highest-leverage tools available for Miro SCIM automation.
list_all_miro_scim_users
Retrieves a paginated list of users in the Miro organization. This tool supports SCIM filter expressions in the filter query parameter, which is essential for finding a specific user ID before executing updates or deletions.
Usage Note: The LLM uses this tool heavily during data discovery. Remind the agent to strictly follow SCIM syntax, such as userName eq "email@domain.com".
"Find the Miro user profile for sarah.connor@example.com and tell me if her account is currently active."
create_a_miro_scim_user
Provisions a new user in the Miro organization via SCIM. Newly provisioned users are automatically added to the default team.
Usage Note: The userName field (usually an email) is explicitly marked as required in the schema, ensuring the LLM doesn't attempt to create ghost accounts.
"Create a new Miro SCIM user for john.doe@example.com and set his display name to John Doe."
update_a_miro_scim_user_by_id
Updates an existing user using a SCIM PatchOp. This is used to change attributes like names or to suspend accounts by setting active to false.
Usage Note: The JSON schema forces the LLM to structure the body as an Operations array. Remember that the userType license cannot be downgraded via this tool.
"Suspend the user account with ID 847291 by patching their active status to false."
list_all_miro_scim_groups
Fetches all user groups in the organization along with their current members. Supports SCIM filtering on group attributes.
Usage Note: Highly useful for security audits to cross-reference which teams have access to sensitive Miro boards.
"List all Miro SCIM groups and find the one named 'Engineering Leadership'. Return its group ID."
update_a_miro_scim_group_by_id
Patches a Miro user group to add, remove, or replace members, or to update the group's display name.
Usage Note: Group display names are strictly capped at 60 characters. The LLM handles the array logic to append or remove specific user IDs from the members array.
"Remove user ID 104859 from the 'Contractors' group and add them to the 'Full-Time Employees' group."
For the complete inventory of available Miro SCIM tools, schemas, and required parameters, visit the Miro SCIM integration page.
Workflows in Action
Connecting Claude to Miro SCIM transforms complex, multi-step IT workflows into simple natural language commands. Here is how Claude orchestrates these tools in the real world.
Scenario 1: Automated Employee Offboarding
Persona: IT Operations Specialist
"Alex Chen (alex.chen@example.com) is leaving the company today. Please find his Miro account, remove him from all specialized groups, and suspend his access immediately."
Step-by-step Execution:
- Claude calls
list_all_miro_scim_usersusing the filteruserName eq "alex.chen@example.com"to retrieve Alex's unique user ID and current group memberships. - Claude loops through Alex's associated groups and calls
update_a_miro_scim_group_by_idfor each one, passing a SCIM PatchOp to remove his ID from thememberslist. - Claude calls
update_a_miro_scim_user_by_id, executing a PatchOp to set"active": false. - Claude returns a summary: "Alex Chen has been removed from the 'Design' and 'Marketing' groups, and his Miro account has been suspended."
sequenceDiagram
participant IT as IT Specialist
participant Claude as Claude Desktop
participant MCP as Truto MCP Server
participant Miro as Miro SCIM API
IT->>Claude: "Offboard Alex Chen..."
Claude->>MCP: Call list_all_miro_scim_users (filter: userName eq ...)
MCP->>Miro: GET /Users?filter=...
Miro-->>MCP: Returns User ID 99281
MCP-->>Claude: Parses ID & Groups
Claude->>MCP: Call update_a_miro_scim_group_by_id (remove operation)
MCP->>Miro: PATCH /Groups/{id}
Miro-->>MCP: 200 OK
Claude->>MCP: Call update_a_miro_scim_user_by_id (active: false)
MCP->>Miro: PATCH /Users/99281
Miro-->>MCP: 200 OK
MCP-->>Claude: Success
Claude-->>IT: "Offboarding complete."Scenario 2: Security Access Auditing
Persona: Identity and Access Management (IAM) Engineer
"Audit the 'External Consultants' group. List all current members, and check if any of them are still marked as active in our system."
Step-by-step Execution:
- Claude calls
list_all_miro_scim_groupsusing the filterdisplayName eq "External Consultants"to retrieve the group's ID and its rawmembersarray. - Claude extracts the list of user IDs from the group response.
- Claude makes subsequent calls to
get_single_miro_scim_user_by_id(or a batchedlist_all_miro_scim_usersquery) for each consultant. - Claude cross-references the
activeboolean flag on each user profile. - Claude compiles a markdown report detailing which consultants hold active seats and flags any anomalies.
Security and Access Control
Identity providers are the most sensitive tier of enterprise architecture. Exposing SCIM APIs to an AI agent requires strict, infrastructure-level boundaries. Truto provides multiple mechanisms to secure your MCP endpoints:
- Method Filtering: Configure your MCP token with
config.methods: ["read"]. This strips out allcreate,update, anddeletetools at generation time. The LLM physically cannot alter data; it can only audit. - Tag Filtering: Group specific resources using
config.tags. You can restrict an agent so it only sees tools related togroupsand is entirely blind tousersoperations. - Dual-Layer Authentication: Enable
require_api_token_auth: true. The MCP URL alone is no longer enough to execute tools. The client must pass a valid Truto API token in theAuthorizationheader, ensuring only authenticated systems can invoke the agent's capabilities. - Automated Expiration: Set an
expires_atdatetime when generating the server. Truto's internal scheduler will automatically delete the credentials and database records when the TTL expires - perfect for granting temporary audit access to an external security firm.
Moving Forward with Agentic Identity
Connecting Claude to Miro SCIM replaces rigid, manually maintained IT scripts with an intelligent orchestration layer. By leveraging Truto's dynamic MCP server generation, you eliminate the need to write custom JSON-RPC transport code, navigate nested SCIM PatchOp schemas, or manage manual token lifecycles. Your engineering team can focus on building intelligent agent behavior, while Truto handles the translation layer between the model and the API.
FAQ
- Does Truto automatically handle Miro SCIM rate limits for the MCP server?
- No. Truto does not retry, throttle, or apply backoff on rate limit errors. When the upstream API returns HTTP 429, Truto passes that error directly to the caller and normalizes upstream rate limit info into standardized headers (ratelimit-limit, ratelimit-remaining, ratelimit-reset) per the IETF spec. The AI agent or calling client is responsible for implementing retry and backoff logic.
- Can I prevent Claude from deleting users in Miro SCIM?
- Yes. When you generate the MCP server, you can configure method filtering by passing config.methods: ["read"]. This ensures tools like delete_a_miro_scim_user_by_id are never generated or exposed to the LLM.
- How do I connect the Truto MCP Server to Claude Desktop?
- You can connect via the Claude UI (Settings -> Integrations -> Add MCP Server) or by updating your claude_desktop_config.json file to use the @modelcontextprotocol/server-sse package and passing your Truto MCP URL.
- Does the LLM understand how to format SCIM Patch operations?
- Yes. Truto derives the MCP tool definitions directly from its strict API documentation. This provides Claude with rigid JSON schemas that instruct it exactly how to format the nested SCIM Operations array required for PATCH requests.