Skip to main content
runbooks/identity-access-management/entra-id-b2b-guest-invitation-redemption-failure-cross-tenant.md
high SEVERITYIdentity & Access ManagementMicrosoft Entra ID

Entra B2B ReadResponseFailure: Disposed HttpWebResponse

Severity
high
Target Time
45m
DomainIdentity & Access Management
Verified
Overview

Diagnose Entra B2B invitation failures showing ReadResponseFailure, Cannot access a disposed object, or System.Net.HttpWebResponse by correlating request IDs, invited identity and partner-scoped policy evidence.

Share

Destructive Operation

This intervention contains destructive operations. Proceed with extreme caution and ensure database backups exist before execution.

01 // Diagnose

Symptom

Incident signalWhat responders observe

A B2B guest receives an invitation but cannot redeem it across a partner tenant because the invited address does not match the intended home identity path, the guest domain is not allowed, email one-time passcode is not permitted when needed, or cross-tenant collaboration is blocked between the two tenants.

The invited address and its home identity provider must be established before changing policy.

Where client or service evidence contains ReadResponseFailure, the message Cannot access a disposed object, or a System.Net.HttpWebResponse reference, preserve the complete timestamped error and request ID.

These signatures identify the failing response-handling path but do not, by themselves, prove that cross-tenant policy is the root cause.

Detection Signature

Detection evidenceMetrics, logs, and confirmation commands
  1. Use Microsoft Entra admin center read-only inspection and preserve invitation identifiers, request IDs, screenshots, and sign-in evidence.

  2. Confirm the affected guest invitation and capture the exact invited email address and any existing external user record.

  3. Confirm the invited address exactly matches the intended guest address and identify whether the user is expected to authenticate through a Microsoft Entra tenant or through an allowed fallback path.

  4. Review External Identities settings relevant to invitation redemption and note whether Microsoft accounts are disabled and whether email one-time passcode is permitted when applicable.

  5. Review External Identities > Cross-tenant access settings and compare Organisational settings for the partner organisation with Default settings, capturing both before any change.

  6. Ask the partner organisation to inspect its outbound B2B collaboration settings for your tenant and provide corresponding request IDs or sign-in evidence.

  7. If the guest is not represented in a Microsoft Entra tenant, verify whether email one-time passcode is permitted by policy. Do not use unsupported command examples; keep initial investigation portal-based unless separately documented in your environment.

  8. Where the captured error includes ReadResponseFailure, Cannot access a disposed object, or System.Net.HttpWebResponse, retain the complete timestamped stack or diagnostic event and correlate its request ID with Microsoft Entra sign-in evidence. Treat the signatures as diagnostic evidence, not as permission to broaden cross-tenant defaults.

Root Cause Analysis

Causal chainWhy the incident occurred
  1. Likely causes are: the invited address does not correspond to the intended home identity provider; the guest domain is not allowed; inbound B2B collaboration policy for the partner organisation is blocked or not explicitly allowed; the partner tenant's outbound B2B collaboration policy restricts access to your tenant; Microsoft accounts have been disabled without leaving at least one fallback identity provider enabled; or email one-time passcode is required for the guest type but is not permitted by policy.

02 // Contain & Prevent

Blast Radius

  • Guest users invited from the specific partner tenant or invited domain

  • B2B collaboration flows between your tenant and the affected partner organisation

  • Users relying on fallback identity-provider options if those tenant-wide options were altered

  • Users who depend on email one-time passcode where that policy is required and permitted

Prevention Measures

Prevent recurrenceControls and architectural guardrails
  • Document each partner tenant's intended trust model before inviting guests, including the invited address, expected home identity path, whether the user is represented in a Microsoft Entra tenant, and whether email one-time passcode is an approved fallback.

  • Use per-organisation cross-tenant settings rather than broad default changes.

  • Keep at least one fallback identity provider enabled when Microsoft accounts are disabled.

  • Record request IDs and sign-in evidence for failed redemptions so partner administrators can correlate inbound and outbound policy decisions quickly.

03 // Fix & Intervention

Pre-Flight Checks

Change gateChecks required before intervention
  1. Before any change, confirm all of the following with read-only portal evidence: the exact invited address; the intended home identity provider path for that address; whether the user is represented in a Microsoft Entra tenant; whether the issue is limited to one partner tenant or domain; the current per-organisation inbound B2B collaboration setting for that partner; the current Default settings; the partner administrator's confirmation of the current outbound B2B collaboration setting towards your tenant; whether Microsoft accounts are disabled; and whether email one-time passcode is permitted when needed. Do not broaden default collaboration policy. Do not assume any prior revision is known-good from rollout history; require an approved change record identifying the intended target configuration, otherwise escalate. Stop before any change if the invited address is wrong, the intended trust path is unconfirmed, the needed control plane is tenant-wide rather than partner-scoped and no approved change record exists, or partner outbound policy cannot be verified.

Execution CommandsCOMMANDS

Get-Date -Format o export PARTNER_TENANT="" export CHANGE_RECORD="" export ENTRA_PORTAL="https://entra.microsoft.com" # Read-only status gate: verify an approved scoped change exists, confirm current Organisational settings and Default settings are captured, and confirm partner outbound evidence is on hand. # If any gate fails, do not change settings; escalate. echo "Open $ENTRA_PORTAL" echo "Navigate to External Identities > Cross-tenant access settings" echo "Capture screenshots or equivalent evidence for:" echo " - Organisational settings for partner: $PARTNER_TENANT" echo " - Default settings" echo " - Relevant invitation redemption and fallback identity provider settings" echo "Verify approved change record: $CHANGE_RECORD" # State-changing action is permitted only when the issue is isolated to one documented partner organisation # and the approved change record explicitly authorizes a scoped per-organisation inbound B2B collaboration update. echo "If approved, in External Identities > Cross-tenant access settings > Organisational settings > select partner $PARTNER_TENANT > modify only the inbound B2B collaboration setting required for the documented collaboration path. Do not edit Default settings." # Read-only status gate: after saving, re-open the partner Organisational settings and Default settings and confirm only the intended partner-scoped inbound setting changed. # If Default settings changed or the saved state differs from the approved change record, stop and escalate. # No other state-changing action is authorized by this runbook. # If remediation appears to require changing redemption configuration, fallback identity-provider behavior, email one-time passcode policy, deleting/recreating guest objects or invitations, or any tenant-wide setting, do not proceed here; escalate for a separately documented procedure with explicit approval.nn# RBAC gate: confirm the operator is acting in the correct tenant with the Security Administrator role (or an explicitly approved higher role) before opening edit mode; otherwise stop and escalate.n# Preview gate: before Save, a second authorised reviewer must compare the proposed per-organisation inbound B2B change with the captured before-state and approved change record, and confirm that Default settings and fallback identity providers are unchanged.

04 // Verify & Recover

Verification Steps

Recovery proofEvidence required before closure
  1. Verify recovery with a single test redemption for the documented partner tenant after the scoped change.

  2. Confirm the invitation now redeems successfully for the confirmed invited address and intended home identity path.

  3. Review sign-in logs, request IDs, and the partner administrator's outbound evidence for the successful attempt. Re-open External Identities > Cross-tenant access settings and confirm Default settings remain unchanged and only the documented partner organisation reflects the approved inbound change.

Rollback Protocol

Safe reversal path
  1. If the test guest still cannot redeem, if the observed authentication path does not match the confirmed design, or if inspection shows Default settings were changed or another unintended setting was altered, immediately restore the original partner-specific inbound cross-tenant access setting captured before the change, using the approved change record and the saved before-state evidence.

  2. If the original state was not captured, do not guess

  3. escalate.

Escalation

Conditions requiring additional ownership
  • Escalate to the Entra platform owner and the partner tenant administrator when the invited address cannot be tied to a confirmed home identity provider.

  • When partner outbound policy cannot be verified or changed.

  • When a scoped per-organisation inbound rule does not restore redemption.

  • When the needed remediation would require changing redemption behavior.

  • Fallback identity-provider settings.

  • Email one-time passcode policy.

  • Deleting or recreating guest objects or invitations.

  • Or any tenant-wide default collaboration settings.

  • Or when no approved change record defines the intended target state.

Authoritative Sources

Related Runbooks

Entra B2B ReadResponseFailure: Disposed HttpWebResponse - Incident Runbook | KBY Technologies