Menu
  • Downloads
  • Knowledge Base
  • Documentation
  • Reputation
  • Email Security Tester
  • Downloads
  • Knowledge Base
  • Documentation
  • Reputation
  • Email Security Tester
home/Knowledge Base/Libraesva ESG/Automatic mapping of Shared Mailbox in M365
Popular searches:GDPR, ESG 5 migration guide, "How to configure Libraesva ESG for Microsoft 365"

Automatic mapping of Shared Mailbox in M365

11 views 0 July 30, 2025 victor-popescu

Table of Contents

  • Introduction
  • Prerequisites
  • Automatic mapping via Powershell & ESG APIs
Print to PDF

Introduction

ESG offers a native Graph API integration with M365 which is used to automatically sync valid users / addresses and for SSO authentication.

One of the elements synced via API are Shared Mailboxes, in ESG they are created as “Functional User” in the User Management. In M365 Shared Mailboxes can be accessed by users which were given permission to manage this mailbox, so like Groups and Distribution Lists they have a list of “members”.

Unlike for Groups and Distributions lists for which Graph API provides the list of members associated to each of them, the members of a Shared Mailbox cannot be retrieved via Graph API, this means ESG cannot automatically map the address of these Shared Mailboxes as secondary to the corresponding ESG Users which in M365 can manage them.

 

Prerequisites

In order to automate the mapping of shared to their corresponding members in ESG some prerequisites must be in place:

  •  ESG integration with Microsoft 365 must be configured and working
  • At least 1 import in ESG must be done from with M365 integration
  • Shared Mailboxes are present in ESG in the User Management

 

This will restrict the activity to only mapping the shared mailbox to existing ESG users according to the member list extracted via Powershell.

Automatic mapping via Powershell & ESG APIs

Powershell can be used to connect to your M365 tenant with the “Exchange Online” module, you can find the details on how to install and use this module here.

Once Powershell and the needed module are installed you can use it to retrieve the list of Shared Mailboxes currently present in your M365 tenant and the corresponding members which can manage them

An example of workflow to retrive the list of members for Shared Mailboxes is the following:

  • get list of all Shared Mailboxes
  • for each Shared search all users which have permissions to manage it
  • check if the members retrieved in the previous step are normal users or groups
  • if they are groups extract the members of the group to have the final list of users

Once you have extracted the list of all Shared Mailboxes with the corresponding members you can use ESG’s APIs to automatically map the address of the shared to the corresponding ESG users which are members.

An example of workflow to map shared to ESG users which are members is the following:

  • retrieve the list of all ESG users with the /user endpoint
  • filter out all users which are not members of any Shared Mailbox
  • Loop through each user by ID (/user/{id}) and verify if the Shared Mailbox he is a member of is already present as alias
  • If the Shared is not present as alias patch the corresponding user to update the list of aliases including the Shared he is a member of

 

The combination of these two workflows will allow you to automatically map Shared Mailboxes in ESG to their corresponding members, these can be combined in a Powershell script that you manually run periodically or schedule for automatic execution.

Was this helpful?

Yes  No
Related Articles
  • Troubleshooting Outlook Add-in Authentication with Microsoft 365
  • Libraesva AI usage: technical implementation, governance, privacy and regulatory compliance
  • ESG API
  • Cluster Firewall ports requirements for workers (distributed setup)
  • Encryption at rest
  • Distributed setup

Didn't find your answer? Contact Us

Popular Article
  • Automatic mapping of Shared Mailbox in M365
  • Encryption at rest
  • Protocol number
  • Migration process from UkCloud due to liquidation
  • How to indipendently verify Certified timestamping of archived email with RFC3161
Tag Cloud
active content blacklist Cluster Alert Cluster Error delisting delivery disk performance email esva file sandbox gdpr hypervisor ip address memory usage monitoring monitring performance privacy production quarantine disk quicksand rbl reputation retention time sandbox sanitize document security snmp template testing tnef uri sandbox url rewrite url sandbox winmail.dat zabbix

  Blackberry .DAT file blocked

Manually Associate an Alias to a User  

Products
  • Email Security Gateway
  • Email Archiving & Compliance
  • Phishing Awareness
Industry
  • SMB Companies
  • Large Companies
  • Education
  • MSP’s
Solutions
  • Microsoft 365
  • General Data Protection Regulation (GDPR)
  • Business Email Compromise
  • Migrate from Symantec
Resources
  • Email Security Tester
  • Company Website
  • Security Blog
  • Case Studies
  • Free Tech Webinars
Partners
  • Partner Portal
  • Become a Partner
  • Technology Alliances
Company
  • About Libraesva
  • Why Libraesva
  • News
  • Careers
  • Contact Us

LIBRAESVA SRL
Piazza Cermenati, 11
23900 Lecco - ITALY
VAT ID: 03442930131


LIBRAESVA LIMITED
Spaces, 83 Baker St
London W1U 6AG - United Kingdom
VAT ID: 274381685


LIBRAESVA INC
2608 2nd Ave, Suite 327
Seattle, WA 98121 - United States

  • (C) Libraesva 2024 - All rights reserved

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT

WordPress Download Manager

WordPress Download Manager - Best Download Management Plugin

Popular searches:GDPR, ESG 5 migration guide, "How to configure Libraesva ESG for Microsoft 365"