Data Loss Prevention

 View Only
  • 1.  plugin and custom attributes

    Trusted Advisor
    Posted Sep 21, 2011 07:25 AM

    Hello

     

     I need to do a custom plugin for my customer and need to know if it is possible to get or retrieve custom attributes value in custom plugin.

    To be more precise, some of our custom attributes are set by policy response rules, and i would like to get this value in my custom script to

    compute an other custom attribute (which will be a concatenation of the first custom attribute and a second parameter).

     

    Not sure it is possible to do it using custom plugin so if you have any more ideas they are more than welcomed.



  • 2.  RE: plugin and custom attributes
    Best Answer

    Posted Sep 21, 2011 10:06 AM

    You'd need to do a connection to the DLP database within your script to pull the attribute values, as they are not passed within the Lookup Plugin Framework.  I can't remember, however, if the Response Rules that write attributes write them to the database before the lookup plugins are fired, so you'd need to test for that to be sure before you waste your time writing something.  My inclination is that they are (since you have an incident ID from the database at the time the plugins are fired), so you should be able to do it.

    You're either going to need a separate "lookup" user for the database, or you could use the protect user...make sure you use the credential encryption.

    ~Keith



  • 3.  RE: plugin and custom attributes

    Trusted Advisor
    Posted Sep 28, 2011 03:01 AM

    ok, thats what i thought but always hoping there is an "easier way" to do it.