Get-MgUserMessageAttachmentCount
GET /users/{user-id}/messages/{message-id}/attachments/$count (v1.0)
Module: Microsoft.Graph.Mail
Permissions
Delegated (work or school)
- Mail.Read (least privilege)
Delegated (personal)
- Mail.Read (least privilege)
Application
- Mail.Read (least privilege)
Source: Microsoft Graph PowerShell SDK metadata
Confirm property-specific permissions, Entra roles, licensing and ownership requirements in the official documentation. SDK metadata outside the verified sample is not independently certified.