m365_convert_ex_employee_to_shared
Convert a departing employee's mailbox into a free shared mailbox, forward incoming mail with a copy, and hide it from the GAL to preserve access and reduce licenses.
Instructions
Converts a departing employee's mailbox to a free SharedMailbox, sets forwarding with copy, and hides from GAL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legacy_upn | Yes | ||
| hide_from_gal | No | ||
| target_forward_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |