resolve target
GET /api/mcp/share-targets/resolve?username= — exact username → user_id,
for share add/share remove to target someone outside the caller’s own
org-visibility scope (unlike search_targets above, this is intentionally
NOT scoped — see service::connectors::resolve_share_target’s doc comment).
Query Parameters
Exact username to resolve
Response
Resolved — data is {user_id, username}
Doc-only schema for the standard MCP ApiResponse envelope
({"data": …, "status_code": N, "message": "…"}). Most /api/mcp/*
payloads are service-layer serde_json::Value views, so data is
documented as a free-form object; each route's response description says
what it carries.
