Modern auth for VI_ITShop_Process Approval Inbox

Hi Team,

We are using version 8.1 and are out of support for modern auth fix which uses modern auth to process approval mails

Job chain name: VI_ITShop_Process Approval Inbox

We imported all the missing libraries from to v8.1 and then customized the jobchain using v9 scripts and then provided all missing API permissions to Azure 1IM application.

At the end we are getting below error when job executes.

Did anyone successfully achieve the modern auth in 8.1 for VI_ITShop_Process Approval Inbox?

ErrorMessages  (2022-11-30 08:43:47.083) Access mail approval inbox by using supplied account credentials.

[810222] Error executing script 'CCC_MailApproval_ProcessInBox'.

[0] Error in script VI_MailApproval_ProcessInBox():

[Microsoft.Identity.Client.MsalUiRequiredException] AADSTS65001: The user or administrator has not consented to use the application with ID '*****************************************' named '1IM'. Send an interactive authorization request for this user and resource.

Trace ID: ***************************************

Correlation ID: ******************************************************

Timestamp: 2022-11-30 08:43:46Z

   at StdioProcessor.StdioProcessor._Execute(Job job)

   at VI.JobService.JobComponents.ScriptComponent.Activate(String task)

   at VI.JobService.JobComponents.ScriptComponent._TaskScriptExec()

   at VI.DB.Scripting.ScriptRunner.Eval(String key, Object[] parameters)

   ---- Start of Inner Exception ----

   at DynScripts.Scripts_5EDUYCivq9RJKKiZulXKte2B4GA.CCC_MailApproval_ProcessInBox(String inboxMailAddress, String inboxMailAddressAccount, String inboxMailAddressAccountPassword, String inboxMailAddressAccountDomain, String inboxMailAddressUri, String inboxMailDeleteMode, String inboxMailAppId)