Update Add Remove Segment #2
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding new parameters 'AddInformationSegment' and 'RemoveInformationSegment' to Get-SPOSite. It provides the capability to add segment or remove segment from a site.
This parameter is only applicable for tenants who have enabled M365 Information barriers capability. For other tenants, this property will be blank.
-AddInformationSegment
This parameter sets the information segments associated to the site.
[!NOTE] This parameter is available only in SharePoint Online Management Shell Version 16.0.19927.12000 or later.
Type: Collection of GUIDs
Position: Named
Required: False
Position: Named
Default value: None
Example1: Set-SPOSite [-Identity] -AddInformationSegment [a17efb47-e3c9-4d85-a188-1cd59c83de32]
In example1, it adds the InformationSegment 'a17efb47-e3c9-4d85-a188-1cd59c83de32' to the site.
-RemoveInformationSegment
This parameter removes the information segment associated to the site.
[!NOTE] This parameter is available only in SharePoint Online Management Shell Version 16.0.19927.12000 or later.
Type: GUID
Position: Named
Required: False
Position: Named
Default value: None
Example2: Set-SPOSite [-Identity] -RemoveInformationSegment [a17efb47-e3c9-4d85-a188-1cd59c83de32]
In example2, it remove the InformationSegment 'a17efb47-e3c9-4d85-a188-1cd59c83de32' from the site.