Then pull the extended property for the LegacyDN of the MailboxAssoication then you just need to resolve that to the SMTPAddress eg Once you bind to the MailboxAssoications Folder you can then just use a FindItem op with a search filter to limit the results to just the Group associations. RtFolder.TryGetProperty(MailboxAssociationFolderEntryId, out MAFldId) ĪlternateId aiEWS = (AlternateId)service.ConvertId( new AlternateId(IdFormat.He圎ntryId, BitConverter.ToString(MAFldId).Replace( "-", ""), IdFormat.EwsId) įolder MbAssoc = Folder.Bind(service, new FolderId(aiEWS.UniqueId)) PropertySet fldPropSet = new PropertySet(BasePropertySet.FirstClassProperties) įldPropSet.Add(MailboxAssociationFolderEntryId) įolder rtFolder = Folder.Bind(service, new FolderId(WellKnownFolderName.Root, fldPropSet)
#Microsoft office 365 calendar api code#
You can then use the following code to get all the Unified Groups a Mailbox is a member ofĮxtendedPropertyDefinition MailboxAssociationFolderEntryId = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, "MailboxAssociationFolderEntryId", MapiPropertyType.Binary)
![microsoft office 365 calendar api microsoft office 365 calendar api](https://www.tatvasoft.co.uk/blog/wp-content/uploads/2021/01/Azure-AD-Graph-API1-768x388-1.png)
So if you have a version of the Managed API compiled from this source that includes these updates (there is a sample one from one of my other post here ) .
![microsoft office 365 calendar api microsoft office 365 calendar api](https://www.soliantconsulting.com/wp-content/uploads/2020/03/blog-ms-graph-api-office-365-smtp-access-fig1.png)
If your following the changes to the EWS Managed API open source repository support for reading the available Unified groups a Mailbox is a member of was added in April. This is done using the yet to be documented GetUserUnifiedGroups EWS operation.
![microsoft office 365 calendar api microsoft office 365 calendar api](https://www.cloudcybersafe.com/wp-content/uploads/2020/03/azure_app_registratio.jpg)
Office365 Groups (or unified\modern groups) is a new feature the was introduced in Office365 that Exchange Online is an active participant in by providing the Email/Conversation and calendar portions of this feature. Recently there was a new unified REST API released in preview that I'll look at another day but with this post I want to look at just accessing the Exchange portion of the unified Groups using EWS and also we will take a look at how the config is stored in the mailbox.