Wednesday, July 16, 2014

Secure Vs. Unsecure Configuration

How to pass parameters to plug in
Secured vs. Unsecured
Below are key differentiation between Secured and Unsecured data configuration
  • Access
  1.   Data passed through “Unsecure” section is PUBLIC (i.e., It can be read by any user in CRM).
  2. Only users with “System Administrator” role have access to the data passed through “Secure” configuration section
  • Storage
  1. “Unsecure” config data will be stored along with the Plugin ‘Step’ registration information (i.e., In SdkMessageProcessingStep entity)
  2. “Secure” config data will be stored in a separate entity named “SdkMessageProcessingStepSecureConfig
  3. Only “System Administrator” has Read access on this entity, hence only users with ‘Sys Admin’ role can access this data
  4. Both “Secured & Unsecured” configuration data stored as “Plain text” in DB
  • Outlook Sync
  1. “Unsecured” configuration data is downloaded to the user’s computer when they go offline making it Unsecure
  2. “Secured” configuration data is NOT downloaded to User’s Computer when they go Offline
   
       How to read Configuration data in Plug-in
  1. When we register plug-in step, there is a field when we can specify some configuration parameters for the plugin execution as below:

  2. Then in constructor of plugin class we will get the configuration value which we can use later in the execution method:

In quick watch we can check all the configuration parameters as below:

  • ·          Note :- If you want to read “Secure” configuration in the plug-in code, either change the  user context in plugin registration as “CRM administrator ” or Impersonate to “CRM Administrator” role user in the code.

1 comment:

  1. This really is both equally a very good information when i rather definitely preferred verifying. This may not be at all times i always get likely to see a challenge. Software Design

    ReplyDelete