Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Amimul Ihsan Mahdi

    (@amimulihsanmahdi)

    Hello @audunbk,

    You need to log into the same account in the both time so if you logged into different accounts, this will cause an issue with the API permission. In addition, you should log into the account that you want to send email from. So, if you want to send email from [email protected] then you should log in and generate the API key from that account.

    Thank you

    Thread Starter AudunBK

    (@audunbk)

    Thanks for the quick reply!

    Thread Starter AudunBK

    (@audunbk)

    Thank you for your kind support and for this great plugin, @amimulihsanmahdi

    I have a few follow-up questions after having followed the instructions above and generated the API key from the same email address that is set as “Sender Email”. First I got an error message when I tried to log on the the Microsoft account after pressing ?Authenticate with Office 365 & Get Access Token?. The error message said “AADSTS700016: Application with identifier … was not found in the directory (domain name). This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.”

    In Settings –> “Connection Details” it says “Token Validity: Invalid. Please re-authenticate”. In the email log it says { “code”: 423, “message”: “Unauthorized”, “errors”: [ “Unauthorized”] }.

    Does this indicate that I have entered the wrong “Application Client Secret” or “Application Client ID”? I read on this page that “In case, after configuring the correct Client ID you still get this error, you need to construct the below URL and provide it to the Global administrator of your tenant, who will have to consent after successfully signing in.
    https://login.microsoftonline.com/common/adminconsent?client_id=your_client_id”

    Plugin Support Amimul Ihsan Mahdi

    (@amimulihsanmahdi)

    Hello @audunbk,

    Apologies for the delay in getting back to you. From the error message, it seems like the account you have used to generate the credentials does not have permission to send emails. In that case, you can contact the administrator to provide permission or you can use another account that have the permission.

    Let me know the update.

    Thank you

    Thread Starter AudunBK

    (@audunbk)

    It worked well now after I generated a new “Application Client Secret”?and added it again together with the “Application Client ID” and the new generated Access Token.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Microsoft 365 plugin setup’ is closed to new replies.