メインコンテンツへスキップ
ZUNDA株式会社

Microsoft 365 と任意の IdP をフェデレーションする手順

shao

Microsoft 365 を任意の IdP (例: Google Workspace, Okta) を利用してログインするように構成できます。

制限事項

  • IdP 経由でログインする設定はドメイン単位で行います。
  • 当該ドメインのユーザにはパスワードが作成されないため、Azure AD Join のログインやリモートデスクトップ、AADDSなどのパスワード(ハッシュ)を利用したサービスは利用できません。
  • 設定には PowerShell の知識が必要です。

設定手順

新規設定

  1. Microsoft Graph モジュールをインストールします
    Install-Module Microsoft.Graph
  2. 資格情報を取得します
    Connect-MgGraph -Scopes "Directory.AccessAsUser.All", "Domain.ReadWrite.All"
  3. SSO に必要な情報を登録します。
    New-MgDomainFederationConfiguration `
      -DomainId example.com `
      -DisplayName example.com `
      -IssuerUri https://accounts.google.com/o/saml2?idpid=XXXXXX `
      -PreferredAuthenticationProtocol "SAMLP" `
      -ActiveSignInUri https://accounts.google.com/o/saml2/idp?idpid=XXXXXX `
      -SigningCertificate MIIDabcd........7890abfd `
      -PassiveSignInUri https://accounts.google.com/o/saml2/idp?idpid=XXXXXX `
      -SignOutUri https://accounts.google.com/o/saml2/idp?idpid=XXXXXX

証明書の更新

  1. 資格情報を取得します
    Connect-MgGraph -Scopes "Directory.AccessAsUser.All", "Domain.ReadWrite.All"
  2. ドメインの一覧を取得します
    Get-MgDomain
  3. 前述の結果からドメインID (ドメイン名) を確認し、詳細情報を取得します
    Get-MgDomainFederationConfiguration -DomainId example.com | fl
  4. 新しい証明書を登録します
    Update-MgDomainFederationConfiguration `
      -DomainId example.com `
      -InternalDomainFederationId '12345678-90ab-cdef-1234-567890abcdef' `
      -SigningCertificate MIIDabcd........7890abfd