When I do Accept-CtimCopyRequest -RequestID <RequestID> -SourceTenantGUID <GUID>it report timeout

Yan 0 Reputation points
2026-03-07T20:53:20.8133333+00:00

I am doing the Cross-Tenant Identity Mapping, when I do Accept the copy request. It report timeout, I have tried many times and restart the powershell, but still meet the same issue.

Accept-CtimCopyRequest : Request failed

GatewayTimeout

Gateway Timeout

upstream request timeout

所在位置 行:1 字符: 1

  • Accept-CtimCopyRequest -RequestID
  • 
      + CategoryInfo          : NotSpecified: (:) [Accept-CtimCopyRequest], Exception
    
      + FullyQualifiedErrorId : System.Exception,Microsoft.CrossTenant.IdentityMapping.Module.AcceptCtimCopyReques
    
    

---
*Move from "Exchange Online"*

Microsoft Security | Microsoft Entra | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-03-07T20:53:33.4+00:00

    The timeout indicates that the upstream service handling the cross-tenant identity mapping copy request is not responding within the allowed time, so the Accept-CtimCopyRequest PowerShell cmdlet fails with GatewayTimeout.

    From the available guidance on similar timeout and authorization patterns, use the following checks and mitigations:

    1. Verify permissions and roles
      • Ensure the signed-in account running Accept-CtimCopyRequest has all required roles in the target tenant for Cross-Tenant Identity Mapping and cross-tenant access configuration.
      • When using Microsoft Graph–based PowerShell, insufficient privileges can cause failures that surface as generic errors. For cross-tenant operations, confirm that the account has the documented roles and that any required Graph scopes are consented when connecting (for example, using Connect-MgGraph with the required scopes for cross-tenant configuration).
    2. Check for existing configuration conflicts
      • Cross-tenant features can fail if a configuration already exists for the same partner tenant. For cross-tenant synchronization, errors like Another object with the same value for property tenantId already exists or Request_MultipleObjectsWithSameKeyValue indicate that a configuration is already present.
      • For identity mapping, check whether a mapping or related cross-tenant access policy for the same tenant pair already exists. If so, update the existing configuration instead of accepting a new copy request.
    3. Retry after a delay
      • The error pattern matches a timeout of an upstream service. For similar request timeouts in Microsoft identity and data-plane APIs, the recommended mitigation is to retry the operation after a delay rather than immediately repeating it.
      • Close the current PowerShell session, open a new elevated PowerShell window, reconnect, and retry Accept-CtimCopyRequest after several minutes.
    4. Validate network and service health
      • Gateway timeouts can be caused by network issues or service unavailability between the PowerShell client and the Microsoft 365/Entra back-end.
      • Ensure there are no firewall, proxy, or network restrictions blocking access to Microsoft 365 and Entra endpoints from the environment where the cmdlet is run.
      • If possible, try from a different network or host to rule out local connectivity issues.
    5. Check for long-running or large operations
      • For other services (for example, Microsoft Purview Data Map and Cosmos DB), timeouts occur when a single request attempts to process too much data or a long-running operation. The mitigation is to reduce the scope of the operation or break it into smaller steps.
      • If the identity mapping copy involves a large configuration, wait and retry; if the problem persists, consider simplifying or splitting the configuration if the tooling allows.
    6. Collect logs and open a support case if it persists
      • Since the cmdlet is failing consistently with GatewayTimeout even after retries and PowerShell restarts, capture:
        • The exact cmdlet and parameters used (with IDs redacted as needed).
        • Timestamp, tenant IDs, and any correlation IDs if present.
      • Open a support case with Microsoft, providing the full error text and logs so support can inspect the upstream service and any cross-tenant configuration conflicts.

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.