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
-
- Novice
- Posts: 6
- Liked: never
- Joined: Feb 07, 2023 2:48 pm
- Full Name: Steffen Huebner
- Contact:
-
- Product Manager
- Posts: 10110
- Liked: 2696 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Undo Veeam O365 User permissions
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
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
-
- Novice
- Posts: 6
- Liked: never
- Joined: Feb 07, 2023 2:48 pm
- Full Name: Steffen Huebner
- Contact:
Re: Undo Veeam O365 User permissions
Hi Fabian,
and what about the personal one drive accounts of all employees?
Thanks, Steffen
and what about the personal one drive accounts of all employees?
Thanks, Steffen
-
- Product Manager
- Posts: 10110
- Liked: 2696 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Undo Veeam O365 User permissions
OneDrive Sites are just personal SPO sites. The same command will work:
Best,
Fabian
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
Fabian
Product Management Analyst @ Veeam Software
-
- Novice
- Posts: 6
- Liked: never
- Joined: Feb 07, 2023 2:48 pm
- Full Name: Steffen Huebner
- Contact:
Re: Undo Veeam O365 User permissions
Thank you Fabian @Mildur,
that's the solution!
Best,
Steffen
that's the solution!
Best,
Steffen
Who is online
Users browsing this forum: Amazon [Bot] and 50 guests