/servicedesk-runbooks:runbook-shared-mailbox <mailbox-address> <user-address> [--access <full|sendas|sendonbehalf>] [--dry-run]from servicedesk-runbooks
Guided workflow to grant shared mailbox access with pre-checks, permission type selection, approval gate, and end-user notification.
Ships in servicedesk-runbooks. Installing the plugin adds it to Claude Code.
Guided workflow for granting access to a shared mailbox.
Get-Mailbox -Identity "{mailbox}" -RecipientTypeDetails SharedMailboxGet-MailboxPermission -Identity "{mailbox}" | Where-Object {$_.User -like "*{user}*"}Ask in plain language:
# Full Access (with auto-mapping so it appears in Outlook automatically)
Add-MailboxPermission -Identity "{mailbox}" -User "{user}" -AccessRights FullAccess -AutoMapping $true
# Send As
Add-RecipientPermission -Identity "{mailbox}" -Trustee "{user}" -AccessRights SendAs -Confirm:$false
# Send on Behalf
Set-Mailbox -Identity "{mailbox}" -GrantSendOnBehalfTo @{Add="{user}"}
Get-MailboxPermission -Identity "{mailbox}" | Where-Object {$_.User -like "*{user}*"} | Format-Table User, AccessRights
Get-RecipientPermission -Identity "{mailbox}" | Where-Object {$_.Trustee -like "*{user}*"} | Format-Table Trustee, AccessRights
Hi [User Name],
You now have access to the shared mailbox **[mailbox-name]** ([mailbox-address]).
**What to expect:**
- The mailbox will appear in your Outlook automatically within 30-60 minutes
- If it doesn't appear, restart Outlook or add it manually via File > Account Settings > Account Settings > Email > Change > More Settings > Advanced
- In Outlook on the web, the mailbox should appear in your folder list
**Your access:**
- [Full Access / Send As / Send on Behalf — description of what they can do]
If you have any issues, reply to this message.
| Field | Value |
|---|---|
| Mailbox | [email protected] |
| User | [email protected] |
| Access type | Full Access + Send As |
| Auto-mapping | Enabled |
| Status | Granted |
| Ticket | [reference] |
<mailbox-address>: Shared mailbox email address<user-address>: User to grant access to--access <full|sendas|sendonbehalf>: Permission type (or ask interactively)--dry-run: Show what would be granted without making changesskills/servicedesk-runbooks/SKILL.md for additional patternsFiles this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
5 commands in this plugin
/runbook-password-resetReset a user's password — guided workflow with compliance checks, secure password generation, and delivery instructions./runbook-recover-fileRecover a deleted file from OneDrive or SharePoint recycle bin — guided search, preview, and restore./runbook-reset-mfaReset MFA for a user — guided workflow with identity verification, method removal, and re-registration instructions./servicedesk-setupSet up the Service Desk Runbooks plugin — configure Graph and Exchange access for common ticket workflowsnpx claudepluginhub thelobbi/claude-m --plugin servicedesk-runbooksOther plugins' commands for the same job