Forum Discussion

rrdrummond88's avatar
rrdrummond88
Copper Contributor
Jan 15, 2025

External Access Policy - CsExternalAccessPolicy e CsTenantFederationConfiguration (PowerShell)

Hello, community.

We are trying to enable functionality regarding the creation of external access policies using the New-CsExternalAccessPolicy (CommunicationWithExternalOrgs) and Set-CsTenantFederationConfiguration (CustomizeFederation) commands. However, we are receiving the following error:

Set-CsTenantFederationConfiguration : Customize Federation is not allowed to enable in your tenant. In line:1 character:1 + Set-CsTenantFederationConfiguration -CustomizeFederation $true + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: ({ ConfigType = ...Configuration }:<>f__AnonymousType104`5) [Set-CsTenantFederationConfiguration], Exception + FullyQualifiedErrorId : ClientError,Microsoft.Teams.ConfigApi.Cmdlets.SetCsTenantFederationConfiguration

Is it necessary to do something first? We are following the documentation below:

https://learn.microsoft.com/en-us/microsoftteams/trusted-organizations-external-meetings-chat?tabs=organization-settings

TKS!

1 Reply

  • Andres-Bohren's avatar
    Andres-Bohren
    Steel Contributor

    hi rrdrummond88 

    Do you have the "Global Admin" or "Teams Administrator" Role?
    Does "Get-CsTenantFederationConfiguration" work?
    Did you try this "Set-CsTenantFederationConfiguration -CustomizeFederation $True"?

    Kind Regards
    Andres

Resources