Error: Could not load 'System.IdentityModel.Tokens.JwtSecurityToken' when Connecting to MsOnline Session in Active Roles

Hello Everyone,

I am encountering an issue when trying to connect to an MsOnline session using the Connect-MsolService cmdlet within Active Roles.
If I run the following command separately in a standard PowerShell session, it works as expected:

Connect-MsolService
Reset-MfaToken -Identity "some.user"


This successfully resets the MFA sessions for the user and deletes the authentication method.

However, I’ve set up a workflow in Active Roles that triggers this same function via a virtual attribute to reset MFA for a specific user. When I attempt to run the workflow, I receive the following error:

[Error] - Could not open Office 365 session - Reported exception is:
[Error] - Could not load type 'System.IdentityModel.Tokens.JwtSecurityToken' from assembly 'System.IdentityModel.Tokens.Jwt, Version=7.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.


Has anyone encountered this issue before or have any suggestions on how to resolve it?

Thank you for your assistance!

p.s Im running active roles last releases Version: 8.2.0.302