Edit

Share via


Set-SPOCrossTenantRelationship

This cmdlet sends a trust request to the tenant with whom you want to establish trust.

Syntax

Default (Default)

Set-SPOCrossTenantRelationship
    [-Scenario] <OrgRelationScenario>
    [-PartnerRole] <OrgRelationRole>
    [-PartnerCrossTenantHostUrl] <String>
    [<CommonParameters>]

Description

Use this cmdlet to send a trust request to the tenant with whom you want to establish trust.

Examples

Example 1

Set-SPOCrossTenantRelationship -Scenario MnA -PartnerRole Target -PartnerCrossTenantHostUrl https://contoso-my.sharepoint.com

This cmdlet sends a trust request to the Contoso tenant.

Parameters

-PartnerCrossTenantHostUrl

Applicable: SharePoint Online The cross-tenant URL of the partner tenant. The partner tenant can determine this for you by running Get-SPOCrossTenantHostUrl on each of the tenants.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PartnerRole

Applicable: 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.

Parameter properties

Type:Microsoft.SharePoint.Client.Administration.OrgRelationRole
Default value:None
Accepted values:None, Source, Target
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Scenario

Applicable: SharePoint Online

Parameter properties

Type:Microsoft.SharePoint.Client.Administration.OrgRelationScenario
Default value:None
Accepted values:None, MnA
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object