Get-Mailbox errors in logs for Entra ID and M365 integration

Integration Event log for SCM is showing a failed synchronization with the error:
Errors when getting user information: ['Failed to get resource users: Azure request failed: 403 - {"error":{"code":"Forbidden","message":"User is not allowed to call Get-Mailbox","innererror":{"message":"User is not allowed to call Get-Mailbox","type":"Microsoft.Exchange.Admin.OData.Core.ODataServiceException","stacktrace":"","internalexception":{"message":"cmdlet Get-Mailbox is not present in the role definition of the current user","type":"Microsoft.Exchange.Configuration.Authorization.CmdletAccessDenied

This is caused by an API Permission issue within the Microsoft App Registration.  This can be corrected by adding the following API Permission to your App Registration

Use-Case API Permission Type Permission
M365 (Email) / Entra ID Microsoft APIs /
Microsoft Graph
Application MailboxSettings.Read

The App Registration may also require an additional IAM role.

 Entra ID: Granting Security Reader role
  1. Navigate to Entra ID in the Azure portal
  2. Expand Manage and select "Roles and Administrators" on the left hand side
  3. Search for the "Global Reader" role and click on it
  4. On the next screen, select Add Assignment
  5. In the "Search" field, enter the whole App ID that you created in the above steps and assign it to the Global Reader role: