How to Control Guest Access to all Office 365 Groups?

Do you want to control the guest access to your Office setup 365 groups? Check How to do this?

 

How to Control Guest Access to all Office 365 Groups?

 

1. Did you introduce the AzureADPreview module, as taught in the above segment “Introduce the review rendition of the Azure Active Directory Module for Windows PowerShell”?

Not having the most current review adaptation is the #1 reason these means don’t work for individuals.

For complete application visit office.com/setup

2. On the off chance that you haven’t officially, open a Windows PowerShell window on your PC (it doesn’t make a difference if it’s a typical Windows PowerShell window, or one you opened by choosing Run as executive).

 

3. Run the accompanying summons. Press Enter after each order.

Import-Module AzureADPreview
Connect-AzureAD

In the Sign in to your Account screen that opens, enter your Office 365 admin account and password to connect you to your service, and click Sign in.

 

4. Run the following command:

$template = Get-AzureADDirectorySettingTemplate | ? {$_.displayname -eq “group.unified”}

 

5. See if you already have an AzureADDirectorySetting object, and if so save the Object ID. Run this command:

$settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value “Group.Unified” -EQ).id

IF, and ONLY if, that cmdlet displays an error saying the object doesn’t exist, create one using these cmdlets:

$template = Get-AzureADDirectorySettingTemplate | ? {$_.displayname -eq “group.unified”}

$settingsCopy = $template.CreateDirectorySetting()

New-AzureADDirectorySetting -DirectorySetting $settingsCopy

$settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value “Group.Unified” -EQ).id

 

6. Copy the AzureADDirectorySetting object back into the local $settingsCopy variable:

$settingsCopy = Get-AzureADDirectorySetting –Id $settingsObjectID

This is only a COPY of the settings; changes won’t take effect until you copy it BACK to the AzureADDirectorySetting object.for more detail visit office.com/setup

 

7. Set the option to allow guests to access O365 groups:

$settingsCopy[“AllowGuestsToAccessGroups”] = “true”

 

8. Finally, (as mentioned above) in order for the change to take effect you must copy the settings BACK to the AzureADDirectorySetting object:

Set-AzureADDirectorySetting -Id $settingsObjectID -DirectorySetting $settingsCopy

 

9. To verify the change took effect, retrieve the value from the AzureADDirectorySetting object (don’t just look at the local copy in $settingsCopy):

(Get-AzureADDirectorySetting –Id $settingsObjectID).Values

 

for more details, visit: www.office.com/setup.

Leave a Reply

Your email address will not be published. Required fields are marked *