Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

plugin and workflow which is more secure ?

Posted on by 35

HI

i want to know about security of plugin and workflow

which is more secure ?

Thanks.

srini.

  • Verified answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: plugin and workflow which is more secure ?

    Just to add, secure/unsecure configurations can be set in plugin registration steps but WF has only parameters.

    Both plugin assembly & custom WF activity can be signed with snk file to protect.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: plugin and workflow which is more secure ?

    Hi srinureddy,

    Plugins and Workflows are secure. This is not the main criteria for choosing to develop Plugins or Workflows.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: plugin and workflow which is more secure ?

    As suggested above, both are equally secure. What is your specific requirement which made you think about the security of plugin & workflow? Do note that plugins for online environment works in sandbox mode which I partially trust so if you are trying for any operation where you need to access local resources such as file etc then it won't work.

    You can read about this here: gonzaloruizcrm.blogspot.com/.../should-i-register-my-plugins-in-sandbox.html

    Hope this helps.

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: plugin and workflow which is more secure ?

    Hello ,

    From  my point of view both are secured and in terms of security measure both are same as they are executing in server side and trigger based on some predefined event which is defined Event Execution Pipeline inside dynamics CRM.

    Now question is in which point of view you are saying which is best secured ?

  • Verified answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: plugin and workflow which is more secure ?

    Hi partner,

    • Workflows triggered automatically will run under the security context of the workflow owner. On the contrary, if executed on demand, the security context of the user who executed the workflow will be used.
    • Plug-ins execute under the security context of the CRM Web application pool identity (typically NETWORK SERVICE). As this account typically maps to generic CRM SYSTEM user this typically works fine.

    You can refer to these two articles:: https://blogs.msdn.microsoft.com/crm/2010/06/25/plug-ins-vs-workflows-in-microsoft-dynamics-crm/

    https://www.sherweb.com/blog/workflow-scope-security-dynamics-365/

    Both are safe.

    You only need to be careful to define user scope with the right security privileges.

    Hope this helps.

    Best Regards,

    Lu Hao

  • Verified answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: plugin and workflow which is more secure ?

    Both are secure as both are running in CRM Context.

    You can choose any as per your requirement.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans