| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/set-spocrosstenantrelationship |
| applicable | SharePoint Online |
| title | Set-SPOCrossTenantRelationship |
| schema | 2.0.0 |
| author | samkabue |
| ms.author | speedta |
| ms.reviewer |
This cmdlet sends a trust request to the tenant with whom you want to establish trust.
Set-SPOCrossTenantRelationship [-Scenario] <OrgRelationScenario> [-PartnerRole] <OrgRelationRole>
[-PartnerCrossTenantHostUrl] <String> [<CommonParameters>]
Use this cmdlet to send a trust request to the tenant with whom you want to establish trust.
Set-SPOCrossTenantRelationship -Scenario MnA -PartnerRole Target -PartnerCrossTenantHostUrl https://contoso-my.sharepoint.comThis cmdlet sends a trust request to the Contoso tenant.
Applicable: SharePoint Online The cross-tenant URL of the partner tenant. The partner tenant can determine this for you by running
Get-SPOCrossTenantHostUrlon each of the tenants.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseApplicable: SharePoint Online Roles of the partner tenant you're establishing trust with. Use source if the partner tenant is the source of the OneDrive migrations, and target if the partner tenant is the destination.
Type: Microsoft.SharePoint.Client.Administration.OrgRelationRole
Parameter Sets: (All)
Aliases:
Accepted values: None, Source, Target
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseApplicable: SharePoint Online
Type: Microsoft.SharePoint.Client.Administration.OrgRelationScenario
Parameter Sets: (All)
Aliases:
Accepted values: None, MnA
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.