I've been trying to use this script and other various flavors of Get-MgUserMailboxSetting and GET /users/{user_id}?$select=mailboxSettings... Just keep hitting a wall with a 403 permission error. Anyone else having any luck?
Access is denied. Check credentials and try again. Status: 403 (Forbidden) ErrorCode: ErrorAccessDenied
It works when I query my own mailboxSettings, but I can't retreive the settings for any other users in the Org. I am global admin and have connected to MgGraph with the MailboxSettings.Read and MailboxSettings.ReadWrite scopes, among others.