Microsoft Graph API - Email Aliases

%3CLINGO-SUB%20id%3D%22lingo-sub-1212259%22%20slang%3D%22en-US%22%3EMicrosoft%20Graph%20API%20-%20Email%20Aliases%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1212259%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20in%20the%20process%20of%20moving%20to%20Graph%20API's.%20I%20have%20a%20use%20case%20where%20I%20have%2015%20email%20aliases%20on%20a%20mailbox.%20During%20the%20app%20authentication%2C%20will%20it%20ask%20for%20which%20email%20aliases%20that%20I%20can%20give%20access%20to.%20If%20so%2C%20can%20I%20give%20access%20to%20only%20two%20email%20aliases.%20Will%20I%20be%20able%20to%20get%20a%20different%20access%20token%20only%20for%20those%20two%20email%20aliases%3F.%20Or%20the%20access%20and%20refresh%20token%20is%20generated%20per%20mailbox.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1212259%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1212933%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Graph%20API%20-%20Email%20Aliases%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1212933%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20token%20is%20generated%20for%20your%20app%2C%20not%20the%20mailbox.%20Typically%2C%20the%20application%20will%20have%20access%20to%20all%20mailboxes%2C%20but%20you%20can%20scope%20this%20down%20if%20needed%20(I%20saw%20you%20found%20the%20article%20on%20this%20already).%20Aliases%20don't%20matter%2C%20they%20are%20resolved%20to%20the%20mailbox%20object.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1213456%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Graph%20API%20-%20Email%20Aliases%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1213456%22%20slang%3D%22en-US%22%3EThe%20e-mail%20aliases%20are%20in%20the%20proxyAddresses%20property%20of%20the%20user%20object%20in%20the%20Graph%20API.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1213608%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Graph%20API%20-%20Email%20Aliases%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1213608%22%20slang%3D%22en-US%22%3EThank%20you%20for%20your%20inputs%3A%20Can%20you%20please%20send%20me%20the%20link%20for%20the%20scope%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113480%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Graph%20API%20-%20Email%20Aliases%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113480%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F575487%22%20target%3D%22_blank%22%3E%40Mihir_Kanojia%3C%2FA%3E%26nbsp%3BCan%20you%20please%20post%20the%20article%20link%20which%20describes%20the%20scope%20for%20proxyaddresses%20object%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

We are in the process of moving to Graph API's. I have a use case where I have 15 email aliases on a mailbox. During the app authentication, will it ask for which email aliases that I can give access to. If so, can I give access to only two email aliases. Will I be able to get a different access token only for those two email aliases?. Or the access and refresh token is generated per mailbox. 

4 Replies

The token is generated for your app, not the mailbox. Typically, the application will have access to all mailboxes, but you can scope this down if needed (I saw you found the article on this already). Aliases don't matter, they are resolved to the mailbox object.

The e-mail aliases are in the proxyAddresses property of the user object in the Graph API.

Thank you for your inputs: Can you please send me the link for the scope?

@Mihir_Kanojia Can you please post the article link which describes the scope for proxyaddresses object?