Hello Boopathi Krishnan,
Thank you for reaching out to Microsoft!!
- To Access or restore data (conversations/calendars) for private groups, Unfortunately Microsoft Graph API restricts certain operations to delegated permissions. This is a security measure to ensure that only authorized users can access sensitive data. Application permissions alone won't bypass this limitation.
- If you are dealing with groups that have hidden membership, you might explore configuring Azure Active Directory (AAD) policies to manage group visibilities and access. This could involve creating dynamic group memberships or using sensitivity labels to govern access.
- As you noted, the EWS API requires the primary SMTP address, which can be impractical. However, if you can obtain SMTP address programmatically, it might be worth revisiting this option.
As a workaround,
- To restore conversations or calendars in private groups, you might consider temporarily adding the admin user as a member of the group. This can be automated using PowerShell scripts or Azure Logic Apps.
- If direct restoration isn't feasible, you could export metadata and conversations to external storage solution. This allows you to preserve data while working around API limitations.
- Please try checking the Microsoft's own backup M365 backup and restore features which might offer additional options for handling private group data. You can explore using the links mentioned below:
Links for reference:
https://learn.microsoft.com/en-us/microsoft-365/backup/backup-faq?view=o365-worldwide
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.