0 votes

Hi,

looking for a solution or script to remove a user from all Online/O365/AAD groups.

The article I found is not working anymore and also I didn't found any script in your repository.

Thanks!

related to an answer for: Remove user from all Office 365 group
by (1.8k points)

1 Answer

0 votes
by (303k points)

Hello,

In Adaxes 2023 and later you can register your Azure AD domain and use the following script to remove users from all groups including cloud ones: https://www.adaxes.com/script-repository/remove-all-group-memberships-for-a-user-account-s33.htm.

0

Hello,

Thank you for specifying. It looks like you did not register your Azure AD domain in Adaxes. The following FAQ article should be helpful: https://www.adaxes.com/questions/13360/how-do-i-manage-cloud-only-users-in-adaxes.

0

Hi,

this is already done image.png

0

Or do I need to add the cloud domain also here? image.png

0

Hello,

As it is mentioned in the article we referenced, registering your Microsoft 365 tenant in Adaxes does not provide access to cloud-only objects. You need to also register your Azure AD domain for that. The domain should be present under the Managed Domains node in the Administration console.

0

Hello,

after adding cloud domain to managed domains and running script again, all goups incl. online ones were removed and user was also removed from any MS Team he was member of.

Thanks!!! : )

Related questions

+1 vote
1 answer

Hello, I am having issues browsing a directory now after the new update. It is just blank, nothing to find: HOWEVER, if I browse to a user, then step back ... show any results to choose from: No issues accessing the directory in the administraton console:

asked Mar 31 by Edogstraus00 (570 points)
0 votes
1 answer

Hi, the script is only working for groups like A group with multiple values like here is not found: How to change the script to find them as well? I want to find all groups where the extensionAttribute5 is used with the value Permanent.

asked May 27 by wintec01 (1.8k points)
0 votes
1 answer

I was using this and it was working just fine. But now I get this error Method not found: 'Void Azure.Core.TokenRequestContext..ctor(System.String[], System.String, System. ... String, Boolean)'. Stack trace: at <ScriptBlock>, <No file>: line 5

asked Sep 20, 2024 by raphaelgagnon (40 points)
0 votes
1 answer

After disable user, not user found or show when try to enable...i follow and try many way yet still not showing.. please help i;m using the ... -not-show-disabled-account https://www.adaxes.com/help/PreventUsersFromViewingTheStructure/#change-top-level-node

asked Oct 23, 2023 by kimtienh (20 points)
0 votes
1 answer

Hi, something has happened to our shared mailbox creation, on prem and syncing with o365 (we're a hybrid environment) the process works. With no issues. When a new shared ... I'm assuming at the moment it's an Adaxes issue with accessing the o365 information.

asked Jan 27, 2023 by gazoco (490 points)
3,708 questions
3,390 answers
8,565 comments
549,808 users