Forum Discussion
mskrgulja
Sep 15, 2020Copper Contributor
Setting External access options via powershell
Hi.
I'm trying to set External access for Teams, but via powershell. Specifically the "Users can communicate with Skype users" option.
I can successfully set the "Users can communicate with other Skype for Business and Teams users", but I can't find a solution for the other option ("Users can communicate with Skype users").
I have read numbers of blog postings, tutorials for the mentioned subject but it just doesn't work, the option won't switch.
Most mentioned powershell command for doing it, is the following:
Set-CsExternalAccessPolicy -EnableOutsideAccess $False
Set-CsExternalAccessPolicy -EnableFederationAccess $False
Set-CsExternalAccessPolicy -EnablePublicCloudAccess $False
Set-CsExternalAccessPolicy -EnablePublicCloudAudioVideoAccess $False
And while the script changes the targeted parameters successfully, the switch in the GUI still remains in "ON" position.
I Have set the switch to the "OFF" position by hand, but underlying parameters quoted in code block above, haven't changed (their values retrieved with Get-CsExternalAccessPolicy powershell command. So, from that, it seems that those commands aren't for that option after all..
Any help is appreciated.
Br
- Ken_M5Copper Contributor
I'm trying to do something similar. However, how did you manage to use the Set-CsExternalAccessPolicy command?
I keep getting a not found error: ObjectNotFound: (Set-CsExternalAccessPolicy:String)
Thanks.
- mskrguljaCopper Contributor
Hi ken.
I couldn't find a solution. We concluded that the documentation was incomplete, and possibly not supported (since the option was still in the "preview" phase) so we didn't want to waste any more time on this.Also, the project (of which we had to change the Teams settings was part of) was abandoned so I never come back to this problem anymore.
Br,
Matija- alexsolomon
Microsoft
mskrgulja , ChristianBergstrom please note the updated documentation for external access. External access is controlled by both a tenant configuration and a policy. In the case of TAC, the toggles control the tenant configuration which then enables/disables users. Additional refinement can be done using PowerShell and the policy.
- ChristianBergstromSilver Contributor
mskrgulja Hi, you are using the correct switch as described here.
https://docs.microsoft.com/en-us/microsoftteams/teams-skype-interop#using-powershell
Bear in mind that it can take several days for settings in Teams to take effect.
- mskrguljaCopper Contributor
Hi. thank you for your response.
I thought that it needed several days for settings to become effective, but I assumed that the GUI switch position would reflect the underlying (powershell changed) change immediately (just like is the case with the first setting).
I will try to make the setting with powershell as I did before, but I will wait a few day to see if the changes will be reflected in the teams admin user interface.
Br.
- ChristianBergstromSilver Contributor
mskrgulja Hello again, I agree. The GUI should show what setting is set. Please verify the settings if you are on-premise, online or hybrid.
*edit* just want to add that this preview has not been very well managed. It was rolled out and withdrawn etc. I'm doing some testing of my own and it doesn't look as it should, meaning the GUI says one thing and PowerShell another. So perhaps it isn't working properly now either. Please let me know if it is any difference when following the above prerequisites for Skype consumer federation.