How can I add Connected Organizations programatically, with Microsoft Entra ID as Authentication type?

Philip Nerem 0 Reputation points
2025-04-23T06:07:35.1833333+00:00

Hi, 

When adding connected organizations using Powershell, Microsoft graph, or any other scripting language, the connected organization is added with auth type:  OTP/Microsoft account. 

When adding the connected org using Entra portal, the org is correctly added as a Microsoft Entra ID tenant. 

Is there any way to add the org as a Microsoft Entra ID tenant programatically?

Note that the external tenant ID is not known to us when adding organizations, as there are no existing users from those organizations as Guest users.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,285 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Harshitha Eligeti 2,755 Reputation points Microsoft External Staff
    2025-04-23T12:35:56.07+00:00

    Hello @Philip Nerem

    I Understand when adding connected organizations using PowerShell, Microsoft graph, or any other scripting language, the connected organization is added with auth type:  OTP/Microsoft account. But when adding the connected org using Entra Portal the org is correctly added as a Microsoft Entra id.

    Microsoft Entra directory or domain authenticate depends on the authentication type. The authentication types for connected organizations are:

    • Microsoft Entra ID, in the same cloud
    • Microsoft Entra ID, in another cloud
    • SAML/WS-Fed identity provider (IdP) federation
    • One-time passcode
    • Microsoft Account

    Even though if you are adding the connected organization using Entra portal, confirm that the organization name(s) and authentication type(s) are correct. Users sign in, prior to being able to access the MyAccess portal, depends on the authentication type for their organization. If the authentication type for a connected organization is Microsoft Entra ID, all users with an account in that organization's directory, with any verified domain of that Microsoft Entra directory, will sign into their directory, and then can request access to access packages that allow that connected organization.

    If the authentication type is One-time passcode, this allows users with email addresses from just that domain to visit the MyAccess portal. After they authenticate with the passcode, the user can make a request.
    User's image

    If you want to add the connected organization programmatically you can add using Microsoft graph and PowerShell. reference: https://learn.microsoft.com/en-us/entra/id-governance/entitlement-management-organization#managing-a-connected-organization-programmatically

    For additional information you can follow: https://learn.microsoft.com/en-us/entra/id-governance/entitlement-management-organization#what-is-a-connected-organization

     
    Do let us know if you have any queries.we are happy to assist further.

    0 comments No comments

Your answer

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