impersonate_user
Allows administrators to temporarily assume another user's identity for testing or support purposes by generating an impersonation token.
Instructions
Impersonate another user (admin only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the user to impersonate | |
| collectionIdOrName | No | Collection name or id (default: users) | users |
| duration | No | Token expirey time (default: 3600) |
Implementation Reference
- src/index.ts:522-545 (registration)Registration of the 'impersonate_user' tool in the MCP tools list, including its description and input schema. No separate handler implementation found; it will likely throw MethodNotFound when called.{ name: 'impersonate_user', description: 'Impersonate another user (admin only)', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID of the user to impersonate', }, collectionIdOrName: { type: 'string', description: 'Collection name or id (default: users)', default: 'users' }, duration: { type: 'number', description: 'Token expirey time (default: 3600)', default: 3600 } }, required: ['id'], }, },
- src/index.ts:525-544 (schema)Input schema definition for the 'impersonate_user' tool, specifying parameters for user ID, collection, and duration.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID of the user to impersonate', }, collectionIdOrName: { type: 'string', description: 'Collection name or id (default: users)', default: 'users' }, duration: { type: 'number', description: 'Token expirey time (default: 3600)', default: 3600 } }, required: ['id'], },