As @jonsson pointed out on the comment, from VBA Application.Options.UseLocalUserInfo
provides getters and setters for user info adjustments*. Link to the documentation.*
C# equivalent for this functionality is provided via Options.UseLocalUserInfo
in Microsoft.Office.Interop.Word
namespace. Link to the documentation.
In this specific situation following approach worked for me.
using Word = Microsoft.Office.Interop.Word;
public class MyClass {
private Word.Application wordApp;
public void MyFunction{
if(this.wordApp == null){
object word = System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application");
this.wordApp = (Word.Application)word;
}
this.wordApp.Options.UseLocalUserInfo = true;
}
}