Maintain control of your Microsoft 365 data
Post Reply
steffennw
Novice
Posts: 6
Liked: never
Joined: Feb 07, 2023 2:48 pm
Full Name: Steffen Huebner
Contact:

Undo Veeam O365 User permissions

Post by steffennw »

Hey there,

one of our admins tried Veeam365 Backup with his personal AdminAccount.
Now he is owner/member of all sharepoint sites and personal onedrives.
Is there a way to undo this??

Thank you!

Steffen
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Undo Veeam O365 User permissions

Post by Mildur »

Hi Steffen

Have you tried native SharePoint Online Powershell Commands in Office 365 to remove this Admin Account from all sites?

For Sharepoint Sites, I believe you can use commands like Set-SPOUser or Remove-SPOUser:
https://learn.microsoft.com/en-us/power ... repoint-ps
https://learn.microsoft.com/en-us/power ... repoint-ps

Best,
Fabian
Product Management Analyst @ Veeam Software
steffennw
Novice
Posts: 6
Liked: never
Joined: Feb 07, 2023 2:48 pm
Full Name: Steffen Huebner
Contact:

Re: Undo Veeam O365 User permissions

Post by steffennw »

Hi Fabian,

and what about the personal one drive accounts of all employees?

Thanks, Steffen
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Undo Veeam O365 User permissions

Post by Mildur »

OneDrive Sites are just personal SPO sites. The same command will work:

Code: Select all

#List all SPO Sites and Personal Sites
Get-SPOSite -IncludePersonalSite 1

#Check current Owners
Get-SPOUser -site https://*********-my.sharepoint.com/personal/username_tenant_onmicrosoft_com | Select LoginName,IsSiteAdmin | Where-Object {$_.IsSiteAdmin -eq 'True'}

#Remove Owner
Set-SPOUser -Site https://*********-my.sharepoint.com/personal/username_tenant_onmicrosoft_com -LoginName firstname.lastname@domain.tld $false -ErrorAction SilentlyContinue
Best,
Fabian
Product Management Analyst @ Veeam Software
steffennw
Novice
Posts: 6
Liked: never
Joined: Feb 07, 2023 2:48 pm
Full Name: Steffen Huebner
Contact:

Re: Undo Veeam O365 User permissions

Post by steffennw »

Thank you Fabian @Mildur,

that's the solution!

Best,
Steffen
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 27 guests