Feature Request: Create & Configure O365 backup account

Maintain control of your Microsoft Office 365 email data

Feature Request: Create & Configure O365 backup account

Veeam Logoby mcrape » Tue Oct 10, 2017 1:42 pm

Apologies if this is posted somewhere else; I didn't see anything similar after a quick search. I have a feature request - it would be super handy to have an option during the Organization setup process that creates an account. The intent would be that this account would be dedicated for Veeam Office 365 backups. As part of the setup, a strong password could be created (or one assigned) and the minimal permissions applied to the account.

I would suspect that this could probably be achieved via Powershell in the back end.
mcrape
Veeam Vanguard
 
Posts: 53
Liked: 20 times
Joined: Mon Jun 27, 2011 7:39 pm
Full Name: Matt Crape

Re: Feature Request: Create & Configure O365 backup account

Veeam Logoby Mike Resseler » Tue Oct 10, 2017 1:52 pm

Hi Matt,

Just to be sure I understood it correctly. You want to be able to use a service account to run the software under? And you want that account to be created during the installation? Or do you want the possibility to create a new user in your O365 org that will be used to backup and potentially recover?
Mike Resseler
Veeam Software
 
Posts: 4220
Liked: 471 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Feature Request: Create & Configure O365 backup account

Veeam Logoby mcrape » Tue Oct 10, 2017 8:32 pm

Hey Mike,

The latter - I would like the install to create a new O365 used specifically for backing up the O365 environment. Basically a service account, but on the Office 365 side (not the account that the process runs on in Windows). Hopefully that makes sense.
mcrape
Veeam Vanguard
 
Posts: 53
Liked: 20 times
Joined: Mon Jun 27, 2011 7:39 pm
Full Name: Matt Crape

Re: Feature Request: Create & Configure O365 backup account

Veeam Logoby vClintWyckoff » Tue Oct 10, 2017 9:21 pm

Hey Matt-
I have some PowerShell that you can use to achieve this easily with only the required permissions to perform backup and recovery.

Code: Select all
#############################################
### Creating a Veeam O365 Service Account ###
#############################################

$credential = Get-Credential

Connect-MsolService -Credential $credential

Import-Module MSOnline

Write-Host -ForegroundColor Yellow 'Enter your Service Account First Name'
$FirstName = Read-Host

Write-Host -ForegroundColor Yellow 'Enter Your Service Account Last Name'
$LastName = Read-Host

Write-Host -ForegroundColor Yellow 'Enter your Service Account UPN - ex - Veeam@Veeam.com Format please'
$UPN = Read-Host

$DisplayName = $FirstName + " "  + $LastName

Write-Host -ForegroundColor Yellow 'Enter your Service Account Password'
$Password = Read-Host

New-MsolUser -DisplayName $DisplayName -FirstName $FirstName -LastName $LastName -UserPrincipalName $UPN -Password $Password -LicenseAssignment "ClintWyckoff:ENTERPRISEPACK" -UsageLocation US -UserType Member -ForceChangePassword $false

#$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $credential -Authentication "Basic" -AllowRedirection
New-RoleGroup -Name $DisplayName -DisplayName $DisplayName -Roles "ApplicationImpersonation", "View-Only Recipients", "View-Only Configuration", "Role Management"
Add-RoleGroupMember $DisplayName -Member $UPN
vClintWyckoff
Expert
 
Posts: 500
Liked: 109 times
Joined: Sat Oct 27, 2012 1:22 am
Location: Technical Evangelist
Full Name: Clint Wyckoff

Re: Feature Request: Create & Configure O365 backup account

Veeam Logoby mcrape » Wed Oct 11, 2017 1:10 am

Awesome - thanks Clint! I was literally just looking up the permissions to start writing this, and thought I should check in on the the thread.

Incorporating this into the Setup could be a nice little "added feature". Just my $.02
mcrape
Veeam Vanguard
 
Posts: 53
Liked: 20 times
Joined: Mon Jun 27, 2011 7:39 pm
Full Name: Matt Crape

Re: Feature Request: Create & Configure O365 backup account

Veeam Logoby nathano » Wed Oct 11, 2017 6:48 am

thanks as well Clint, a couple of tweaks and all good (removed the reference to "-LicenseAssignment "ClintWyckoff:ENTERPRISEPACK"" for starters :-)

I'll run through it again later when I add another tenant and post up what I used.
nathano
Veeam Vanguard
 
Posts: 30
Liked: 1 time
Joined: Mon Sep 05, 2016 5:08 am
Full Name: Nathan Oldfield

Re: Feature Request: Create & Configure O365 backup account

Veeam Logoby Mike Resseler » Wed Oct 11, 2017 2:29 pm

Understood all,

I will look into this, but not sure if this will make it and when it will make it

Thanks for the request!

Mike
Mike Resseler
Veeam Software
 
Posts: 4220
Liked: 471 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Feature Request: Create & Configure O365 backup account

Veeam Logoby vClintWyckoff » Tue Oct 17, 2017 5:28 am

nathano wrote:hanks as well Clint, a couple of tweaks and all good (removed the reference to "-LicenseAssignment "ClintWyckoff:ENTERPRISEPACK"" for starters


What I found in testing is that the account needs to be a licensed O365 account - so that's why that was in there but obviously, it's not meant to copy/paste and work :)
vClintWyckoff
Expert
 
Posts: 500
Liked: 109 times
Joined: Sat Oct 27, 2012 1:22 am
Location: Technical Evangelist
Full Name: Clint Wyckoff


Return to Veeam Backup for Microsoft Office 365



Who is online

Users browsing this forum: No registered users and 9 guests