> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enterprise.emailmeter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tracking shared mailboxes

> Set everything up to track individual agent performance within a shared mailbox

<img src="https://storage.googleapis.com/em-docs/enterprise-documentation/images/shared-microsoft-main.webp" />

To get individual performance metrics from agents operating within a Delegated Mailbox, **the simplest setup requires having the "send on behalf of" permission activated in your shared mailboxes**.

This ensures that when an agent responds to an email within the Shared Mailbox, the email metadata carries the agent's information. Consequently, the Microsoft Graph API captures this data and Email Meter can use it to generate the statistics.

If you'd like to get agent performance metrics without enabling the "send on behalf of" permission, the only alternative involves enabling Audit Logging for your mailboxes, and giving access to Email Meter to those logs to capture that information. Full instructions are available [here](/workspace-setup/audit-logs-microsoft).

<Note>You'll need admin permissions in your Microsoft 365 domain or get in touch with your Microsoft 365 Admin to follow through with these instructions.</Note>

## Instructions

### Set up the required permissions

For Email Meter to display agent performance metrics, make sure that agents have the following permissions for the shared mailbox:

* **Full Access**: lets agents access the mailbox to read emails.
* **Send on Behalf**: enables agents to send emails representing the shared mailbox. Crucial for Email Meter's data collection.

<Warning>Make sure to enable only "Read and manage permissions" and "Send on behalf permissions". Having both "Send as" and "Send on behalf" permissions enabled simultaneously will prevent Email Meter from tracking agent activity correctly.</Warning>

<img src="https://storage.googleapis.com/em-docs/enterprise-documentation/images/shared_mailboxes_001.webp" />

This way, when one of your agents responds to an email that has come into the Shared Mailbox, the information about the agent that responded gets reflected on the Microsoft Graph API and Email Meter can use it to generate email statistics.

<Info>If you don't know how to view or change the permissions of your shared mailboxes, please follow Microsoft's documentation [here](https://learn.microsoft.com/en-us/microsoft-365/admin/email/configure-a-shared-mailbox?view=o365-worldwide).</Info>

### Examples

With these settings are set, if agent John accesses the shared mailbox Acme Inc. Support and sends an email, it will display as John on behalf of Acme Inc. Support.

<img src="https://storage.googleapis.com/em-docs/enterprise-documentation/images/shared_mailboxes_example.webp" />

## Frequently asked questions

<AccordionGroup>
  <Accordion title="We don't use the native shared mailboxes in Microsoft 365, and we give mailbox permissions to certain mailboxes. Can Email Meter track this?">
    Email Meter can track individual agent performance with this setup, but it's important to note that the "Send on behalf of" permission requirement still applies, even if you're delegating access by giving mailbox permissions to other users.
  </Accordion>

  <Accordion title="How can I quickly check if we have the proper permissions set?">
    A quick way to check the type of permissions you have is to ask an agent to send an email from the Shared Mailbox. If the email displays as "(Agent Name) on behalf of (Name of the Shared Mailbox)", the permissions are set correctly.
  </Accordion>

  <Accordion title="How can I see and change the permissions of my shared mailbox?">
    You can learn how to view and manage permissions by following the instructions in Microsoft's documentation [here](https://learn.microsoft.com/en-us/microsoft-365/admin/email/configure-a-shared-mailbox?view=o365-worldwide).
  </Accordion>

  <Accordion title="How can I create a shared mailbox?">
    To get started with using Shared Mailboxes in Microsoft 365, you can follow the instructions in Microsoft's documentation [here](https://learn.microsoft.com/en-us/microsoft-365/admin/email/create-a-shared-mailbox?view=o365-worldwide).
  </Accordion>
</AccordionGroup>
