Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange issue - removeusersfromall groups #12

Closed
baha00 opened this issue Sep 4, 2022 · 1 comment
Closed

strange issue - removeusersfromall groups #12

baha00 opened this issue Sep 4, 2022 · 1 comment

Comments

@baha00
Copy link

baha00 commented Sep 4, 2022

I am using connect to exchange via secureapp model.

Connect-ExchangeOnline -CertificateFilePath "C:\temp\mycert.pfx" -CertificatePassword (ConvertTo-SecureString -String "somepass" -AsPlainText -Force) -AppID $app_id -Organization "myorg.something"

Azure app has role exchange admin added, but removing from o365 groups doesn't work, drops out exception:

System.Management.Automation.RemoteException: Failed to retrieve executing user. Please try again later.

It removes user from security Groups without any errors

@michevnew
Copy link
Owner

Some of the Unified Group cmdlets are not fully supported for CBA, and it's sure taking a lot of time for Microsoft to fix them. I'll update the script to use direct Graph queries eventually, until then connect via the "regular" method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants