How to get user context info in a Write Plugin?

How to get user context info in a Write Plugin?

  • Hi Rick,

    The question is short, so I'm guessing that 'context' refers to some user metadata (like email or usergroups) of your executing user. Preferably you pass that information in through one of the supported mechanism. I assume you went through the provided fields and documentation.

    In case the supported ways are not sufficient, I would suggest the following unsupported (but in some cases) required construct. This way you can access the Trisoft.InfoShare.API25.dll assembly which is one of our more stable internal interfaces.

    using (var userAPI = Trisoft.InfoShare.API.Factories.API25.Factory25.Create<IUser25>("GetMyMetadata"))
    {
    ...
    }

    Note the above code snippit is theoretical, I didn't test nor compile it.

    Best wishes,
    Dave