0365 : Remove-OrganizationSegment failed [Solved]


Bon après les stratégies que l’on ne peut pas supprimer c’est au tour de la suppression des segments dans Information barrier qui me pose un problème. Dans ma configuration j’ai un Segment que je n’arrive pas à supprimer comme le montre la figure suivante

Well, after the strategies that cannot be deleted, it is now the turn of the deletion of the segments in Information barrier that causes me a problem. In my configuration I have a Segment that I can’t delete as shown in the following figure

Remove-OrganizationSegment can’t be removed because it is being used by groups. Before you can remove this information barrier segment, make sure that no groups are linked to it.

Quand je regarde le segment en question la configuration est celle-ci. /
When I look at the segment in question the configuration is this.


J’ai bien eu l’idée de supprimer cette clause mais l’interface ne me laisse pas continuer / I had the idea to remove this clause but the interface does not let me continue

Donc je remets n’importe quoi qui ne filtre aucun utilisateur/ So I put back anything that does not filter any user

Mais cela ne change rien à mon problème compte tenu que j’ai toujours la même erreur : Remove-OrganizationSegment.
can’t be removed because it is being used by groups. Before you can remove this information barrier segment, make sure that no groups are linked to it.
Bon dans la documentation Microsoft https://learn.microsoft.com/en-us/powershell/module/exchange/remove-organizationsegment?view=exchange-ps aucune indication à ce sujet.
V
oici la configuration de mon Segment

But this doesn’t change my problem because I still get the same error: Remove-OrganizationSegment. cannot be removed because it is used by groups. Before you can remove this information barrier segment, make sure that no groups are linked to it. Well in the Microsoft documentation https://learn.microsoft.com/en-us/powershell/module/exchange/remove-organizationsegment?view=exchange-ps no indication about this. Here is the configuration of my Segment

Un peu de recherche sur Internet.. au cas ou…. A priori je ne suis pas le seul mais pas vraiment de réponse. Je décide de relancer la Policy application encore une fois. Cela avait aidé à supprimer la Policy https://unifiedit.wordpress.com/2022/12/26/0365-remove-informationbarrierpolicy-failed-solved/ . Ah cette fois ci je rencontre une nouvelle erreur

A little research on the internet… just in case…. I’m not the only one but I don’t really have an answer. I decide to run the Policy application again. It had helped to remove the Policy https://unifiedit.wordpress.com/2022/12/26/0365-remove-informationbarrierpolicy-failed-solved/ . Ah this time I get a new error

Si il y a une qualité que l’on doit avoir avec les solutions cloud.. c’est la patience… / If there is one quality that one must have with cloud solutions… it is patience…

Après quelque temps l’application de la stratégie c’est effectué et entre temps j’ai quand même ouvert un incident auprès du support

J’essaye de nouveau mais sans succès / I try again but without success

Voici le message d’erreur en totalité

PS C:\Users\lteruin.adm> remove-OrganizationSegment -Identity « NO ADC USER »

Confirm
Are you sure you want to perform this action?
Removing Compliance Policy ‘NO ADC USER’.
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is « Y »): A
Error executing cmdlet, details are: |Microsoft.Exchange.Management.Tasks.IBPolicyChangedWhileApplyInProgressException|Information Barrier Policies cannot be created or modified while Apply is in progress.
+ CategoryInfo : NotSpecified: (:) [Remove-OrganizationSegment], Exception
+ FullyQualifiedErrorId : [Server=VE1EUR01WS063,RequestId=622bf911-3a9c-453e-a674-da7a2d6e1a84,TimeStamp=27/12/2022 09:56:52] [FailureCategory=Cmdlet-Exception] 74DF01E9,Microsoft.Office.CompliancePolicy.Tasks.Informati
onBarrier.RemoveOrganizationSegment
+ PSComputerName : eur01b.ps.compliance.protection.outlook.com

PS C:\Users\lt.adm> $e = $error[0];
PS C:\Users\lt.adm> $e.Exception | fl * -f

SerializedRemoteException : System.Exception: Error executing cmdlet, details are: |Microsoft.Exchange.Management.Tasks.IBPolicyChangedWhileApplyInProgressException|Information Barrier Policies cannot be created or
modified while Apply is in progress. —> Microsoft.Exchange.Hygiene.AdminApiClient.AdminApiResultError+AdminApiResultErrorException: Exception of type
‘Microsoft.Exchange.Management.PSDirectInvoke.DirectInvokeCmdletExecutionException’ was thrown.
— End of inner exception stack trace —
at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target)
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.InformationBarrierPolicyExoProxy.LogExceptionCallingExo(Exception ex, PswsCmdlet exoPswsCmdlet)
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.InformationBarrierPolicyExoProxy.ThrowExceptionWithDetailedError(PswsCmdlet exoPswsCmdlet, Exception exception)
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.InformationBarrierPolicyExoProxy.RemoveExoIBSegment(PsOrganizationSegment psOrganizationSegment)
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.RemoveOrganizationSegment.RemoveInExo()
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.RemoveOrganizationSegment.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__110_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo
ErrorRecord : Error executing cmdlet, details are: |Microsoft.Exchange.Management.Tasks.IBPolicyChangedWhileApplyInProgressException|Information Barrier Policies cannot be created or modified while Apply is in progress.
WasThrownFromThrowStatement : False
Message : Error executing cmdlet, details are: |Microsoft.Exchange.Management.Tasks.IBPolicyChangedWhileApplyInProgressException|Information Barrier Policies cannot be created or modified while Apply is in progress.
Data : {}
InnerException :
TargetSite :
StackTrace :
HelpLink :
Source :
HResult : -2146233087

PS C:\Users\lteruin.adm> $e.Exception.SerializedRemoteException | fl * -f

SerializationData : {35, 115, 105, 103…}
Message : Error executing cmdlet, details are: |Microsoft.Exchange.Management.Tasks.IBPolicyChangedWhileApplyInProgressException|Information Barrier Policies cannot be created or modified while Apply is in
progress.
Data : {}
InnerException : Microsoft.Exchange.Hygiene.AdminApiClient.AdminApiResultError+AdminApiResultErrorException: Exception of type ‘Microsoft.Exchange.Management.PSDirectInvoke.DirectInvokeCmdletExecutionException’ was
thrown.
TargetSite : Void ThrowError(System.Exception, System.Management.Automation.ErrorCategory, System.Object, System.String)
StackTrace : at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target)
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.InformationBarrierPolicyExoProxy.LogExceptionCallingExo(Exception ex, PswsCmdlet exoPswsCmdlet)
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.InformationBarrierPolicyExoProxy.ThrowExceptionWithDetailedError(PswsCmdlet exoPswsCmdlet, Exception exception)
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.InformationBarrierPolicyExoProxy.RemoveExoIBSegment(PsOrganizationSegment psOrganizationSegment)
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.RemoveOrganizationSegment.RemoveInExo()
at Microsoft.Office.CompliancePolicy.Tasks.InformationBarrier.RemoveOrganizationSegment.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__110_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
HelpLink :
Source : Microsoft.Exchange.Configuration.ObjectModel
HResult : -2146233088

OK comme je vois ce message dans les retours d’erreur / OK as I see this message in the error returns« |Microsoft.Exchange.Management.Tasks.IBPolicyChangedWhileApplyInProgressException|Information Barrier Policies cannot be created or modified while Apply is in progress. »

je décide de stopper les Policy applications mais j’ai de nouveau un nouveau message d’erreur

I decide to stop the Policy applications but I get a new error message

Après quelques emails de relance auprès du support rester sans réponse…. je décide le 28 décembre 2022, soit deux jours après l’ouverture du Case, de tenter de supprimer le segment. et …. miracle !!! plus aucun message d’erreur , le segment est supprimé. Les voix impénétrables d’Office 365 !!

After a few emails to the support remain unanswered …. I decided on December 28, 2022, two days after the opening of the Case, to try to delete the segment. and …. miracle!!! no more error message, the segment is deleted . The inscrutable voices of Office 365

Votre commentaire

Choisissez une méthode de connexion pour poster votre commentaire:

Logo WordPress.com

Vous commentez à l’aide de votre compte WordPress.com. Déconnexion /  Changer )

Image Twitter

Vous commentez à l’aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l’aide de votre compte Facebook. Déconnexion /  Changer )

Connexion à %s