Azure Enterprise Application accessing a single mailbox

%3CLINGO-SUB%20id%3D%22lingo-sub-115237%22%20slang%3D%22en-US%22%3EAzure%20Enterprise%20Application%20accessing%20a%20single%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-115237%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20homegrown%20mail%20handler%20application%20that%20needs%20to%20access%20a%20shared%20mailbox%20in%20Exchange%20Online.%20I%20created%20an%20app%20registration%20for%20the%20mail%20handler%2C%20however%2C%20I%20cannot%20figure%20out%20how%20to%20grant%20the%20application%20permissions%20to%20manage%20the%20single%20shared%20mailbox.%20The%20only%20option%20is%20to%20grant%20access%20to%20ALL%20mailboxes%20and%20that%20is%20not%20acceptable.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETony%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-115237%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-115493%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Enterprise%20Application%20accessing%20a%20single%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-115493%22%20slang%3D%22en-US%22%3E%3CP%3EJosh%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20the%20response.%20I%20can%20grant%20any%20account%20fullaccess%20to%20the%20mailbox%20in%20powershell%26nbsp%3B(Add-MailboxPermission)%20.%20What%20I%20want%20to%26nbsp%3B%20avoid%20is%20having%20the%20Enterprise%20Application%20use%20credentials%20at%20all.%20Ideally%2C%20I%20want%20the%20application%20to%20interact%20with%20the%20KeyVault%20to%20get%20a%20URI%20to%20properly%20access%20the%20mailbox%20without%20ever%20having%20to%20see%20credentials.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETony%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-115291%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Enterprise%20Application%20accessing%20a%20single%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-115291%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Tony%2C%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20may%20want%20to%20explore%20how%20Azure%20Administrative%20Units%20can%20help%20in%20this%20situation.%26nbsp%3B%3C%2FP%3E%3CP%3EUsing%20AU's%20you%20can%20delegate%20typically%20admin%20accounts%20to%20access%201%20or%20many%20users%2Fmailboxes.%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20I%20am%20unsure%20if%20AU's%20can%20handle%20Shared%20Mailboxes%20since%20the%20usecase%20for%20AU's%20is%20to%20delegate%20admin%20access%20to%20scopes%20of%20users%20for%26nbsp%3Badministrative%20tasks.%20Furthermore%20you%20need%20delegate%20access%20to%20an%20application%20object%20rather%20than%20a%20privleged%20user%20object.%20So%20this%20is%20something%20you%20may%20want%20to%20explore.%26nbsp%3B%3C%2FP%3E%3CP%3ECheck%20out%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fwww.deployazure.com%2Fsecurity%2Fidentity%2Fazure-ad%2Fazure-ad-administrative-units-in-exchange-online%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.deployazure.com%2Fsecurity%2Fidentity%2Fazure-ad%2Fazure-ad-administrative-units-in-exchange-online%2F%3C%2FA%3E%3C%2FP%3E%3CP%3Eand%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fazure%2Factive-directory%2Fworking-with-administrative-units%3Fview%3Dazureadps-2.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fazure%2Factive-directory%2Fworking-with-administrative-units%3Fview%3Dazureadps-2.0%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

 

I have a homegrown mail handler application that needs to access a shared mailbox in Exchange Online. I created an app registration for the mail handler, however, I cannot figure out how to grant the application permissions to manage the single shared mailbox. The only option is to grant access to ALL mailboxes and that is not acceptable.

 

Thanks

 

Tony

2 Replies
Highlighted

Hey Tony, 

You may want to explore how Azure Administrative Units can help in this situation. 

Using AU's you can delegate typically admin accounts to access 1 or many users/mailboxes. 

However I am unsure if AU's can handle Shared Mailboxes since the usecase for AU's is to delegate admin access to scopes of users for administrative tasks. Furthermore you need delegate access to an application object rather than a privleged user object. So this is something you may want to explore. 

Check out:

http://www.deployazure.com/security/identity/azure-ad/azure-ad-administrative-units-in-exchange-onli...

and

https://docs.microsoft.com/en-us/powershell/azure/active-directory/working-with-administrative-units...

 

Hope this helps!

Highlighted

Josh,

 

Thank you very much for the response. I can grant any account fullaccess to the mailbox in powershell (Add-MailboxPermission) . What I want to  avoid is having the Enterprise Application use credentials at all. Ideally, I want the application to interact with the KeyVault to get a URI to properly access the mailbox without ever having to see credentials.

 

Thanks

 

Tony