Entra External ID Entra External ID

B2B Workforce-Kollaboration, External Tenant (CIAM), externe Identity Provider, Cross-Tenant-Zugriffsrichtlinien und Einladungseinlösung. B2B workforce collaboration, external tenant (CIAM), external identity providers, cross-tenant access policies, and invitation redemption.

B2B CollaborationB2B Collaboration

Externe Benutzer als Gäste im Workforce-Tenant einladen und auf interne Ressourcen zugreifen lassen.Invite external users as guests in the workforce tenant and grant them access to internal resources.

Externer Tenant (CIAM)External tenant (CIAM)

Separater Tenant für Kunden-Apps mit angepassten User Flows und Branding.Separate tenant for customer apps with customized user flows and branding.

Externe Identity ProviderExternal identity providers

Google, Facebook, SAML/OIDC-Verbund als Anmeldemethode für Gastbenutzer.Google, Facebook, SAML/OIDC federation as sign-in method for guest users.

Cross-Tenant-ZugriffCross-tenant access

Inbound- und Outbound-Richtlinien pro Partnerorganisation steuern Geräte- und MFA-Vertrauen.Inbound and outbound policies per partner organization control device and MFA trust.

Überblick: Entra External IDOverview: Entra External ID

Entra External ID fasst alle Szenarien zusammen, in denen Identitäten außerhalb der eigenen Organisation verwaltet oder eingeladen werden. Es gibt zwei grundlegende Modelle: den Workforce-Tenant mit B2B-Gastbenutzern (Partner, Lieferanten) und den External Tenant für Customer Identity (CIAM) mit End-Kunden-Registrierungsflows. Entra External ID consolidates all scenarios where identities outside the own organization are managed or invited. There are two fundamental models: the workforce tenant with B2B guest users (partners, vendors) and the external tenant for Customer Identity (CIAM) with end-customer registration flows.

ℹ️ Abgrenzung B2B vs. CIAMℹ️ B2B vs. CIAM distinction

B2B Collaboration richtet sich an bekannte Partner und Mitarbeiter von anderen Unternehmen, die auf interne Unternehmensressourcen zugreifen sollen. CIAM (External Tenant) richtet sich an anonyme Endkunden, die sich selbst für eine externe App registrieren und anmelden. B2B Collaboration targets known partners and employees from other companies who need access to internal corporate resources. CIAM (External Tenant) targets anonymous end customers who self-register and sign in to an external app.

B2B Collaboration – Workforce-TenantB2B Collaboration – workforce tenant

Bei der B2B-Kollaboration wird ein externer Benutzer als Gastobjekt (userType: Guest) im eigenen Tenant angelegt. Der Gast authentifiziert sich bei seinem Heimat-IdP und erhält dann Zugriff auf freigegebene Ressourcen. In B2B collaboration an external user is created as a guest object (userType: Guest) in the own tenant. The guest authenticates at their home IdP and then receives access to shared resources.

EinladungstypInvitation type MechanismusMechanism EinsatzUse case
E-Mail-EinladungEmail invitation Portal oder Graph-API; Einladungs-E-Mail an GastadressePortal or Graph API; invitation email to guest address Manuelle Einladungen, kleine PartnerkontingenteManual invitations, small partner contingents
Self-Service-RegistrierungSelf-service sign-up User Flow auf App-Ebene; Gast registriert sich selbstUser flow at app level; guest self-registers Partner-Portale, externe CommunitiesPartner portals, external communities
B2B Direct ConnectB2B Direct Connect Bi-direktionale Vertrauensstellung mit Partnerorganisation; kein GastobjektBidirectional trust with partner organization; no guest object Teams Connect (Shared Channels), Cross-Tenant-KollaborationTeams Connect (Shared Channels), cross-tenant collaboration
MasseneinladungBulk invitation CSV-Upload im Portal oder Graph-API-BatchCSV upload in portal or Graph API batch Große Migrationen, Partner-Onboarding-ProjekteLarge migrations, partner onboarding projects

Einladung per PowerShellInvite via PowerShell

PowerShell
Connect-MgGraph -Scopes "User.Invite.All","User.ReadWrite.All"

# Einzelne Einladung
New-MgInvitation -InvitedUserEmailAddress "partner@fabrikam.com" `
    -InviteRedirectUrl "https://myapps.microsoft.com" `
    -SendInvitationMessage $true `
    -InvitedUserDisplayName "Partner User"

# Masseneinladung aus CSV
$guests = Import-Csv "C:\guests.csv" # Spalten: Email, DisplayName
foreach ($g in $guests) {
    New-MgInvitation -InvitedUserEmailAddress $g.Email `
        -InviteRedirectUrl "https://myapps.microsoft.com" `
        -SendInvitationMessage $true `
        -InvitedUserDisplayName $g.DisplayName
}

Einladungseinlösung (Redemption)Invitation redemption

Wenn ein Gast auf einen Einladungslink klickt, durchläuft er den Redemption-Flow. Entra ID prüft dabei die Identität des Gastes und legt ein entsprechendes Verbundkonto oder OTP-Konto an. When a guest clicks an invitation link, they go through the redemption flow. Entra ID verifies the guest's identity and creates a corresponding federated or OTP account.

Heimat-IdP des GastesGuest's home IdP EinlösungsmethodeRedemption method
Anderes Microsoft Entra-KontoOther Microsoft Entra accountOIDC-Verbund mit dem Heimat-Tenant; kein Passwort im Ressource-TenantOIDC federation with home tenant; no password in resource tenant
Microsoft-Konto (MSA)Microsoft-Konto (MSA)MSA-VerbundMSA federation
Google GmailGoogle GmailGoogle-Verbund (sofern konfiguriert)Google federation (if configured)
FacebookFacebookFacebook-Verbund (sofern konfiguriert)Facebook federation (if configured)
SAML/OIDC-IdP (Direct Federation)SAML/OIDC-IdP (Direct Federation)Direct Federation mit konfiguriertem IdPDirect federation with configured IdP
Keine bekannte MethodeNo recognized methodOTP (Email-Einmalpasswort)OTP (Email-Einmalpasswort)
ℹ️ Email OTPℹ️ Email OTP

Email One-Time Passcode ist der Fallback-Mechanismus für Gäste ohne Entra ID oder MSA. Der Gast erhält ein kurzlebiges Einmalpasswort per E-Mail und kann sich damit authentifizieren, ohne ein Konto bei einem IdP zu benötigen. Email One-Time Passcode is the fallback mechanism for guests without Entra ID or MSA. The guest receives a short-lived OTP by email and can authenticate without needing an account at an IdP.

Cross-Tenant-ZugriffsrichtlinienCross-tenant access policies

Cross-Tenant-Zugriffsrichtlinien (XTAP) steuern pro Partnerorganisation, welche Vertrauensstellungen gewährt werden. Dabei wird zwischen Inbound (fremde Benutzer in meinem Tenant) und Outbound (meine Benutzer in fremdem Tenant) unterschieden. Cross-Tenant Access Policies (XTAP) control per partner organization what trust is granted. There is a distinction between inbound (foreign users in my tenant) and outbound (my users in a foreign tenant).

RichtlinientypPolicy type Konfiguriert fürConfigured for SteuertControls
Standard-InboundDefault inbound Alle nicht explizit konfigurierten PartnertenantsAll partner tenants not explicitly configured B2B-Einladungen erlauben/blockieren, MFA-Vertrauen, Geräte-Compliance-VertrauenAllow/block B2B invitations, MFA trust, device compliance trust
Standard-OutboundDefault outbound Alle nicht explizit konfigurierten PartnertenantsAll partner tenants not explicitly configured Ob meine Benutzer als Gäste in anderen Tenants eingeladen werden dürfenWhether my users may be invited as guests in other tenants
Organisations-spezifisch (Inbound)Organization-specific (inbound) Einzelner Partnerorganiations-TenantIndividual partner organization tenant MFA-Vertrauen, compliant device, Hybrid Join Trust für diesen PartnerMFA trust, compliant device, Hybrid Join trust for this partner
Organisations-spezifisch (Outbound)Organization-specific (outbound) Einzelner Zielorganisations-TenantIndividual target organization tenant Welche internen Benutzer in diesem Fremd-Tenant als Gäste tätig sein dürfenWhich internal users may operate as guests in this foreign tenant

MFA- und Geräte-Vertrauen konfigurierenConfigure MFA and device trust

Wenn Sie einem Partnerorganisations-Tenant MFA-Vertrauen gewähren, akzeptiert Ihr CA das bereits erfüllte MFA des Gastes – der Gast muss keine zweite MFA-Anforderung erfüllen. Gleiches gilt für Geräte-Compliance und Hybrid Join. When you grant an MFA trust to a partner organization tenant, your CA accepts the guest's already satisfied MFA – the guest does not need to fulfill a second MFA requirement. The same applies to device compliance and Hybrid Join.

PowerShell
Connect-MgGraph -Scopes "Policy.ReadWrite.CrossTenantAccess"

# Inbound MFA-Vertrauen für spezifischen Partnertenants konfigurieren
$partnerTenantId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
$body = @{
    tenantId = $partnerTenantId
    inboundTrust = @{
        isMfaAccepted = $true
        isCompliantDeviceAccepted = $true
        isHybridAzureADJoinedDeviceAccepted = $false
    }
} | ConvertTo-Json -Depth 5

Invoke-MgGraphRequest -Method POST `
    -Uri "https://graph.microsoft.com/v1.0/policies/crossTenantAccessPolicy/partners" `
    -Body $body -ContentType "application/json"

# Bestehende Cross-Tenant-Policies anzeigen
Get-MgPolicyCrossTenantAccessPolicyPartner | Select-Object TenantId, InboundTrust, OutboundTrust

Externe Identity ProviderExternal identity providers

Im Workforce-Tenant können Google und Facebook als Identity Provider für B2B-Gäste konfiguriert werden. Für Unternehmenspartner eignet sich der SAML/OIDC Direct Federation. In the workforce tenant, Google and Facebook can be configured as identity providers for B2B guests. For enterprise partners, SAML/OIDC Direct Federation is suitable.

ProviderProvider ProtokollProtocol EinsatzUse case KonfigurationConfiguration
GoogleGoogleOAuth 2.0 / OIDCOAuth 2.0 / OIDCGmail-Nutzer als Gäste einladenInvite Gmail users as guestsClient-ID und Secret aus Google Developer ConsoleClient ID and secret from Google Developer Console
FacebookFacebookOAuth 2.0OAuth 2.0Consumer-Gäste für B2C-nahe SzenarienConsumer guests for B2C-like scenariosApp-ID und Secret aus Meta Developer PortalApp ID and secret from Meta Developer Portal
SAML Direct FederationSAML Direct FederationSAML 2.0SAML 2.0Unternehmenspartner mit eigenem SAML-IdP (ADFS, Ping, Okta)Enterprise partner with own SAML IdP (ADFS, Ping, Okta)Partner-Metadaten oder manuelle EndpointsPartner metadata or manual endpoints
OIDC Direct FederationOIDC Direct FederationOIDCOIDCPartner mit modernem OIDC-IdPPartner with modern OIDC IdPClient-ID, Secret, Metadata URIClient ID, secret, metadata URI

Externer Tenant (CIAM)External tenant (CIAM)

Ein externer Tenant ist ein dedizierter Entra-ID-Tenant für Customer Identity and Access Management (CIAM). Er ermöglicht Self-Service-Registrierung, Social-Login, angepasstes Branding und kundenseitige MFA-Methoden, ohne die internen Workforce-Ressourcen zu berühren. An external tenant is a dedicated Entra ID tenant for Customer Identity and Access Management (CIAM). It enables self-service registration, social login, customized branding, and customer-side MFA methods without touching internal workforce resources.

FeatureFeature BeschreibungDescription
User FlowsUser FlowsVordefinierte Registrierungs- und Anmeldeabläufe mit konfigurierbaren AttributenPredefined sign-up and sign-in flows with configurable attributes
Custom Authentication ExtensionsCustom Authentication ExtensionsAzure Function-Hooks für Attributanreicherung und externe ValidierungAzure Function hooks for attribute enrichment and external validation
BrandingBrandingUnternehmenslogo, Hintergrund, Farben; pro-App anpassbarCompany logo, background, colors; customizable per app
Identity ProviderIdentity ProviderEmail/Password, Google, Facebook, Apple, SAML/OIDCEmail/password, Google, Facebook, Apple, SAML/OIDC
MFAMFATOTP, SMS, Email OTPTOTP, SMS, Email OTP
MSAL / OIDC SDKMSAL / OIDC SDKStandardmäßige MSAL-Bibliotheken oder eigene OIDC-IntegrationStandard MSAL libraries or custom OIDC integration

Einstellungen für externe ZusammenarbeitExternal collaboration settings

Im Entra-Admin-Center (Entra ID → External Identities → Externe Zusammenarbeit) steuern Sie übergeordnete Einschränkungen für B2B-Einladungen und Gastbenutzerrechte. In the Entra admin center (Entra ID → External Identities → External collaboration settings) you control top-level restrictions for B2B invitations and guest user permissions.

EinstellungSetting OptionenOptions EmpfehlungRecommendation
Gastbenutzer-ZugriffsberechtigungenGuest user access permissions Gleiche wie Mitglieder / Eingeschränkt / Höchst eingeschränktSame as members / Restricted / Most restricted Höchst eingeschränkt für externe Partner empfohlenMost restricted recommended for external partners
Wer darf einladen?Who can invite? Jeder / Mitglieder und Admins / Nur Admins / NiemandEveryone / Members and admins / Admins only / Nobody Admins only oder governed via Entitlement ManagementAdmins only or governed via Entitlement Management
Erlaubte/Blockierte DomainsAllowed/blocked domains Allowlist oder BlocklistAllowlist or blocklist Allowlist für kontrollierte PartnerumgebungenAllowlist for controlled partner environments
One-time passcode (OTP)One-time passcode (OTP) Aktiviert / DeaktiviertEnabled / Disabled Aktiviert als sicheres FallbackEnabled as secure fallback

Gast-Lifecycle und BereinigungGuest lifecycle and cleanup

PowerShell
Connect-MgGraph -Scopes "User.Read.All","User.ReadWrite.All"

# Alle Gastbenutzer auflisten
Get-MgUser -Filter "userType eq 'Guest'" -All |
    Select-Object DisplayName, UserPrincipalName, CreatedDateTime, SignInActivity

# Gäste, die sich nie oder seit 90 Tagen nicht angemeldet haben
$cutoff = (Get-Date).AddDays(-90)
Get-MgUser -Filter "userType eq 'Guest'" -All -Property "id,displayName,userPrincipalName,signInActivity" |
    Where-Object {
        $null -eq $_.SignInActivity.LastSignInDateTime -or
        $_.SignInActivity.LastSignInDateTime -lt $cutoff
    } | Select-Object DisplayName, UserPrincipalName, @{N="LastSignIn"; E={$_.SignInActivity.LastSignInDateTime}}

# Gast deaktivieren
Update-MgUser -UserId "" -AccountEnabled $false

# Gast löschen
Remove-MgUser -UserId ""
✅ Empfehlung: Access Reviews für Gäste✅ Recommendation: Access reviews for guests

Richten Sie wiederkehrende Access Reviews speziell für Gastbenutzer ein und konfigurieren Sie Auto-Apply mit der Aktion Block Sign-In oder Remove Access bei ausstehender Überprüfung. Kombinieren Sie dies mit Entitlement Management für einen vollständigen Gast-Lifecycle. Set up recurring access reviews specifically for guest users and configure auto-apply with the action Block sign-in or Remove access for outstanding reviews. Combine this with Entitlement Management for a complete guest lifecycle.

Self-Service Sign-up User FlowsSelf-service sign-up user flows

Self-Service Sign-up User Flows erlauben es Gästen, sich ohne manuelle Einladung selbst zu registrieren. Sie werden auf Enterprise-App-Ebene konfiguriert und unterstützen verschiedene Identity Provider, Attributabfragen und API-Connectors. Self-service sign-up user flows allow guests to register themselves without a manual invitation. They are configured at the Enterprise App level and support various identity providers, attribute collections, and API connectors.

Schritt im User FlowUser flow step KonfigurierbarConfigurable
Identity Provider AuswahlIdentity provider selectionE-Mail/OTP, Entra-Konto, Google, Facebook, SAML/OIDCEmail/OTP, Entra account, Google, Facebook, SAML/OIDC
AttributabfrageAttribute collectionDisplayName, Job Title, Department, benutzerdefinierte AttributeDisplayName, Job Title, Department, custom attributes
API Connector (vor Erstellung)API Connector (vor Erstellung)Externe Validierung, Anreicherung per HTTP-EndpointExternal validation, enrichment via HTTP endpoint
API Connector (vor Einladungs-Token)API Connector (vor Einladungs-Token)Claims-Anreicherung vor Token-AusstellungClaims enrichment before token issuance

B2B Direct Connect (Shared Channels)B2B Direct Connect (Shared Channels)

B2B Direct Connect unterscheidet sich grundlegend von B2B Collaboration: Externe Benutzer werden nicht als Gastobjekte im Tenant angelegt. Stattdessen greifen sie direkt über eine Echtzeit-Verbindung auf freigegebene Teams Shared Channels zu. Dies erfordert eine bidirektionale Cross-Tenant-Zugriffsrichtlinienkonfiguration bei beiden Organisationen. B2B Direct Connect fundamentally differs from B2B Collaboration: external users are not created as guest objects in the tenant. Instead, they access shared Teams Shared Channels directly through a real-time connection. This requires a bidirectional Cross-Tenant Access Policy configuration in both organizations.

ℹ️ Teams Shared Channelsℹ️ Teams Shared Channels

B2B Direct Connect ist aktuell das einzige Szenario, das Teams Shared Channels über Tenant-Grenzen hinweg ermöglicht. Für alle anderen Ressourcen-Freigaben (SharePoint, Apps) bleibt B2B Collaboration die richtige Wahl. B2B Direct Connect is currently the only scenario enabling Teams Shared Channels across tenant boundaries. For all other resource sharing (SharePoint, apps), B2B Collaboration remains the right choice.

Entitlement Management für externe BenutzerEntitlement Management for external users

Entitlement Management kann Access Packages spezifisch für externe Benutzer konfigurieren. Connected Organizations ermöglichen es, Partnerorganisationen als vertrauenswürdige Quellen für Zugriffsanfragen zu definieren. Entitlement Management can configure access packages specifically for external users. Connected Organizations enable defining partner organizations as trusted sources for access requests.

KonfigurationConfiguration BeschreibungDescription
Connected OrganizationConnected OrganizationPartnertenants oder Domains als vertrauenswürdig markierenMark partner tenants or domains as trusted
Zugriffs-Package-Policy für externeAccess package policy for external usersErlaubt Anfragen von Connected Organizations oder bestimmten DomainsAllows requests from connected organizations or specific domains
Auto-EnfernungAuto-removalGastzugang automatisch nach Ablauf oder Inaktivität entfernenAutomatically remove guest access after expiry or inactivity

PowerShell-Referenz für External IDPowerShell reference for External ID

CmdletCmdlet BeschreibungDescription
New-MgInvitationNew-MgInvitationGasteinladung erstellen und sendenCreate and send guest invitation
Get-MgUser -Filter "userType eq 'Guest'"Get-MgUser -Filter "userType eq 'Guest'"Alle Gastbenutzer auflistenList all guest users
Get-MgPolicyCrossTenantAccessPolicyDefaultGet-MgPolicyCrossTenantAccessPolicyDefaultStandard Cross-Tenant-Policy lesenRead default Cross-Tenant policy
Get-MgPolicyCrossTenantAccessPolicyPartnerGet-MgPolicyCrossTenantAccessPolicyPartnerPartnertenants-Policies lesenRead partner tenant policies
Update-MgPolicyCrossTenantAccessPolicyDefaultUpdate-MgPolicyCrossTenantAccessPolicyDefaultStandard Cross-Tenant-Policy aktualisierenUpdate default Cross-Tenant policy
Get-MgIdentityB2xUserFlowGet-MgIdentityB2xUserFlowSelf-Service Sign-up User Flows lesenRead self-service sign-up user flows

CIAM User Flow KonfigurationCIAM user flow configuration

Im externen Tenant können User Flows für Registrierung, Anmeldung und Passwort-Reset konfiguriert werden. Jeder User Flow unterstützt mehrere Identity Provider und Attributabfragen. In the external tenant, user flows for sign-up, sign-in, and password reset can be configured. Each user flow supports multiple identity providers and attribute collections.

HTTP – External Tenant User Flows abrufenRetrieve external tenant user flows
GET https://graph.microsoft.com/beta/identity/authenticationEventsFlows

# Spezifischen User Flow abrufen
GET https://graph.microsoft.com/beta/identity/authenticationEventsFlows/{id}

# Verfügbare Identity Provider im externen Tenant
GET https://graph.microsoft.com/v1.0/identityProviders

Domain-Beschränkungen und Allow/Block-ListenDomain restrictions and allow/block lists

KonfigurationConfiguration WirkungEffect EmpfehlungRecommendation
Domain AllowlistDomain AllowlistNur Gasteinladungen an konfigurierte Domains erlaubtOnly guest invitations to configured domains allowedStrenge Umgebungen mit bekannten PartnernStrict environments with known partners
Domain BlocklistDomain BlocklistEinladungen an blockierte Domains verhindernPrevent invitations to blocked domainsWettbewerber, Consumer-Domains blockierenBlock competitors, consumer domains
Kein FilterNo filterEinladungen an beliebige Domain möglichInvitations to any domain possibleNicht empfohlen für produktive UmgebungenNot recommended for production environments

Branding und AnpassungBranding and customization

Entra External ID erlaubt umfangreiche Branding-Anpassungen für den Anmeldeflow. Im externen Tenant können Logo, Hintergrundbild, Farben und benutzerdefinierte CSS sowie JavaScript-Erweiterungen eingesetzt werden. Entra External ID allows extensive branding customizations for the sign-in flow. In the external tenant, logo, background image, colors, and custom CSS as well as JavaScript extensions can be applied.

Branding-ElementBranding element KonfigurationsortConfiguration location
LogoLogoEntra Admin Center → External Identities → BrandingEntra Admin Center → External Identities → Branding
Benutzerdefiniertes CSSCustom CSSUser Flow → Page layouts → Custom CSSUser Flow → Page layouts → Custom CSS
SprachenLanguagesUser Flow → Languages (benutzerdefinierte Übersetzungen möglich)User Flow → Languages (custom translations possible)
Benutzerdefinierte DomainsCustom domainsEigene Domain statt ciamlogin.com verwendenUse own domain instead of ciamlogin.com

Benutzerdefinierte AttributeCustom user attributes

Benutzerdefinierte Attribute ergänzen das Standard-Benutzerverzeichnis um anwendungsspezifische Felder. Sie können bei der Registrierung im User Flow abgefragt und in den Token eingebettet werden. Custom user attributes extend the default user directory with application-specific fields. They can be collected during sign-up in the user flow and embedded in tokens.

AttributtypAttribute type DatentypData type VerwendungUsage
String-AttributString attributeStringStringFreitextfelder (Firma, Abteilung)Free text fields (company, department)
Boolean-AttributBoolean attributeBooleanBooleanZustimmungsfelder (Newsletter, AGB)Consent fields (newsletter, terms)
Integer-AttributInteger attributeInt32Int32Numerische Werte (Kundennummer)Numeric values (customer number)

API ConnectorsAPI connectors

API Connectors ermöglichen die Integration externer REST-APIs in den Anmeldeflow. Sie können eingesetzt werden, um Benutzereingaben zu validieren, Daten aus externen Systemen abzurufen oder den Registrierungsflow zu steuern. API connectors enable the integration of external REST APIs into the sign-in flow. They can be used to validate user inputs, retrieve data from external systems, or control the registration flow.

EinsatzpunktIntegration point BeschreibungDescription
Nach Eingabe von BenutzerattributenAfter collecting user attributesValidierung der Registrierungsdaten vor dem Erstellen des KontosValidate registration data before account creation
Vor dem Erstellen des BenutzersBefore creating the userAnreicherung oder Blockierung basierend auf externen DatenEnrichment or blocking based on external data
Token-AnreicherungToken enrichmentCustom Claims Provider (Preview): Claims aus externem System injizierenCustom Claims Provider (Preview): inject claims from external system

Custom Authentication ExtensionsCustom authentication extensions

Custom Authentication Extensions (CAE) sind Event-Listener, die an bestimmten Stellen im Authentifizierungsflow aufgerufen werden. Sie ermöglichen Token-Anreicherung mit Daten aus externen Systemen über einen benutzerdefinierten REST-Endpunkt. Custom Authentication Extensions (CAE) are event listeners called at specific points in the authentication flow. They enable token enrichment with data from external systems via a custom REST endpoint.

Event-TypEvent type AuslöserTrigger
onTokenIssuanceStartonTokenIssuanceStartVor der Token-Ausstellung – Claims anreichernBefore token issuance – enrich claims
onAttributeCollectiononAttributeCollectionNach der Attributerfassung – Daten validieren oder vorausfüllenAfter attribute collection – validate or pre-populate data

Native AuthenticationNative authentication

Native Authentication erlaubt mobilen Apps die vollständige Kontrolle über den Anmeldefluss, ohne Browser-Umleitung. Die App kommuniziert direkt über die MSAL-Bibliothek mit dem Entra External ID-Endpoint. Native Authentication unterstützt E-Mail-OTP und Benutzername/Passwort-Flows. Native Authentication allows mobile apps full control over the sign-in flow without browser redirection. The app communicates directly with the Entra External ID endpoint via the MSAL library. Native Authentication supports email OTP and username/password flows.

AspektAspect DetailDetail
Unterstützte MethodenSupported methodsEmail OTP, Benutzername/PasswortEmail OTP, Benutzername/Passwort
SDKSDKMSAL.NET, MSAL for Android/iOSMSAL.NET, MSAL for Android/iOS
VoraussetzungPrerequisiteExterner Tenant, Native Authentication aktiviert in App-RegistrierungExternal tenant, Native Authentication enabled in app registration
BrandingBrandingVollständiges App-Branding möglich (kein Microsoft-Login-Screen)Full app branding possible (no Microsoft login screen)

Token-Anpassung für GastbenutzerToken Customisation for Guest Users

Optional Claim-Policies und Token-Mapping ermöglichen es, Gastbenutzer-Attribute im ID- und Access-Token anzupassen.Optional claims policies and token mapping let you customise guest user attributes in ID and access tokens.

ClaimClaimQuelleSourceBeschreibungDescription
emailemailHomeDirectoryHomeDirectoryE-Mail-Adresse des Gastbenutzers im HeimverzeichnisGuest user email from home directory
given_namegiven_nameHomeDirectoryHomeDirectoryVorname aus dem Gast-TenantFirst name from the guest's home tenant
onpremisessamaccountnameonpremisessamaccountnameSynchronizedSynchronizedSAM-Kontoname, falls on-premises synchronisiertSAM account name if synchronised from on-premises
groupsgroupsResourceDirectoryResourceDirectoryGruppen aus dem Ressourcen-Tenant (max. 150)Groups from resource tenant (max 150)
employeeidemployeeidExtensionExtensionBenutzerdefiniertes Attribut per Directory ExtensionCustom attribute via directory extension
ℹ️ Claims Mapping Policy

ClaimsMappingPolicy-Objekte können per PowerShell erstellt und ServicePrincipals zugewiesen werden, um SAML- und JWT-Tokens für Gastbenutzer anzupassen.ClaimsMappingPolicy objects can be created via PowerShell and assigned to service principals to customise SAML and JWT tokens for guest users.

Gastbenutzer-Lebenszyklus & Access ReviewsGuest User Lifecycle & Access Reviews

Microsoft Entra Entitlement Management und Access Reviews helfen, den Lebenszyklus von Gastbenutzern zu automatisieren.Microsoft Entra Entitlement Management and Access Reviews help automate the lifecycle of guest users.

PhasePhaseMechanismusMechanismAutomatisierungAutomation
EinladungInvitationB2B Invitation API / Access PackageB2B Invitation API / Access PackageAutomatische E-Mail-EinladungAutomatic email invitation
OnboardingOnboardingSelf-service sign-up user flowSelf-service sign-up user flowAttribut-Erfassung bei AnmeldungAttribute collection at sign-up
ZugriffsprüfungAccess reviewEntra Access ReviewsEntra Access ReviewsQuartalsmäßige Sponsor-ÜberprüfungQuarterly sponsor review
AblaufExpiryAccess Package Expiry PolicyAccess Package Expiry PolicyAutomatische Entfernung nach AblaufAutomatic removal on expiry
OffboardingOffboardingLifecycle Workflow / Graph APILifecycle Workflow / Graph APIKonto-Deaktivierung und LöschungAccount disable and deletion

Überwachung externer BenutzerMonitoring External Users

KQL-Abfragen im Log Analytics Workspace ermöglichen die gezielte Überwachung von Gastbenutzer-Aktivitäten.KQL queries in Log Analytics Workspace enable targeted monitoring of guest user activities.

KQL
// Gastbenutzer-Anmeldungen der letzten 7 Tage
SigninLogs
| where TimeGenerated > ago(7d)
| where UserType == "Guest"
| summarize SigninCount=count() by UserPrincipalName, AppDisplayName, ResultType
| where ResultType != "0"
| order by SigninCount desc

// Einladungen und Einlösungen
AuditLogs
| where TimeGenerated > ago(30d)
| where OperationName in ("Invite external user", "Redeem external user invite")
| project TimeGenerated, OperationName, InitiatedBy, TargetResources
| order by TimeGenerated desc

Cross-Tenant-SynchronisationCross-Tenant Synchronisation

Cross-Tenant Sync automatisiert das Erstellen, Aktualisieren und Löschen von B2B-Benutzern zwischen Unternehmenstenant.Cross-Tenant Sync automates the creation, update, and deletion of B2B users between corporate tenants.

⚠️ LizenzanforderungLicence Requirement

Cross-Tenant Sync erfordert Microsoft Entra ID P1 oder P2 im Quell-Tenant. Im Ziel-Tenant genügen Free-Lizenzen für die synchronisierten Benutzer.Cross-Tenant Sync requires Microsoft Entra ID P1 or P2 in the source tenant. In the target tenant, Free licences suffice for the synchronised users.

SchrittStepQuell-TenantSource TenantZiel-TenantTarget Tenant
11Cross-Tenant Sync Konfiguration erstellenCreate cross-tenant sync configurationEingehende Synchronisation aktivierenEnable inbound synchronisation
22Benutzerbereich (Scope) definierenDefine user scopeZiel-Tenant-ID genehmigenApprove source tenant ID
33Attribut-Mapping konfigurierenConfigure attribute mappingBenutzer erscheinen als B2B-MemberUsers appear as B2B members
44Synchronisations-Job startenStart synchronisation jobAutomatische Aktualisierung alle 40 Min.Automatic update every 40 min