Hi. We have transferred the mail exchange to the cloud. I use the ‘ApplicationIdAndSecret’ as Authentication Type, and are providing the Application ID, Application Secret and Tenant. When using old script with the Dependencies = ‘Windows - Legacy’ I am able to send e-mail and create list of e-mails in ‘Inbox’.
But when I create new scripts where the Dependencies = ‘Windows’ I only receive errormessage: “The provided value for scope Mail.Read Mail.ReadWrite Mail.Send Mail.ReadWrite.Shared User.Read - is not valid. Client credential flows must have a scope value with /.default suffixed to the resource identified (application id url)”
Both types of scripts try to access a Shared mailbox.
Try might be work- for authentication type applicationidandsecret, set scope to https://graph.microsoft.com/.default only. do not list scopes like mail.read or mail.send. this is required for client credentials flow. update the microsoft 365 scope activity accordingly.
Hi
Thank you for your help.
When I use the version 2.3.3 of the ‘Microsoft 365’ package and put the ‘Save Attachment’ in a ‘Microsoft Office 365 Scope’ it works as before.