Need to assign a user mailbox "full access" to all mailboxes in O365

Hi,

I need to assign a user mailbox "full access" to all mailboxes in O365. Instead to do that can I just assign a builtin admin role which already has full access to all mailboxes?

Thanks
LVL 1
SAM2009Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)Commented:
No such role/method in Exchange Online. You will have to go over each mailbox and add the permissions. In addition, you will have to do this for every new mailbox.
0
Jose Gabriel Ortega CastroEE Solution Guide - CEO Faru Bonon ITCommented:
the user you want to Add is called "sam2009" (this is the samAccountName)

$UserWithFullAccess="Sam2009"
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking
Get-Mailbox -ResultSize Unlimited | Add-MailboxPermission -User $UserWithFullAccess -AccessRights FullAccess -InheritanceType All
#uncomment if required to clean up the session.
#Remove-PSSession $Session

Open in new window

0
Rajkumar-MCITPCommented:
Instead, Assign Application Impersonation Permission to that one mailbox.On above said methods, you need to add the mailbox permission when a new user join the company.. If you assign Application Impersonation rights, then user can impersonate all the mailboxes in the company including CEO..

New-ManagementRoleAssignment -Name:AI -Role:ApplicationImpersonation -User:"UserName"

Note: This will be used, when you want to perform anything on multiple mailboxes using single account.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

FOXActive Directory/Exchange EngineerCommented:
Connect to O365 with powershell

Get-Mailbox -Resultsize Unlimited | %{Add-MailboxPermission  $_.alias -User "emailaddressofusergettingfullaccess"  -AccessRights FullAccess -verbose}
0
SAM2009Author Commented:
If  Impersonation Permission can be used why don't just do that instead to run PowerShell cmd to add full access all the times.
0
Vasil Michev (MVP)Commented:
Impersonation only works with Exchange Web Services, so unless you want to perform any actions via EWS code, it will not be of much use.
0
SAM2009Author Commented:
Sorry could you explain or give an example?
0
Vasil Michev (MVP)Commented:
Example of what? As I mentioned above, impersonation is used with custom EWS-based applications/code. If you dont have such, it will not help you in your daily admin tasks, as there are no PowerShell cmdlets you can invoke or UI to use. Here's a quick introduction to what impersonation means in Exchange: https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/impersonation-and-ews-in-exchange

And here's an example of how to perform specific task with impersonation (code-based): https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-add-appointments-by-using-exchange-impersonation
0
SAM2009Author Commented:
Just one more question. Is Impersonation can give full access to my service account to all mailboxes?

Example:

New-ManagementRoleAssignment -Name:AI -Role:ApplicationImpersonation -User:"UserName"

Is above cmd will give same full access as this cmd:

Get-Mailbox -Resultsize Unlimited | %{Add-MailboxPermission  $_.alias -User "emailaddressofusergettingfullaccess"  -AccessRights FullAccess -verbose}
1
Vasil Michev (MVP)Commented:
It's not exactly the same, but for most purposes you can indeed use EWS impersonation as a replacement for Full mailbox access.
0
SAM2009Author Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.