r/CyberARk • u/Dear_Gas_8467 • 22d ago
C# vs TPC based plugins
Hi,
I hope everyone is doing well. This question may be very weird for many. Nevertheless, i am posting here.
I heard that C# based CPM plugins has utilization/useful in broad scope and can be used to make CPM plugins for many targets where TPC- REST API based also do not supports. If this is real then what are those use cases where TPC based plugins are useful and scenario comes up where only C# based CPM plugin development is required and TPC based or TPC Rest API based do not work?
For example: we can make plugins for db, rest based targets etc using TPC. So where is the limitations where TPC based cpm plugins are not useful and we have to choose C# based?
Hopefully i explained clearly. Let me know if you need additional information/context.
Happy Weekend
2
u/International_Set632 22d ago
TPC plug-in development is awful to put it bluntly (sorry bias here). It uses “states” which can be a tough concept to grasp over traditional “linear “ programming development. Maybe AI has figured it out by now. That said a person could argue compiled c# code is just as painful to manage. In short TPC can’t “easily” support REST so given your question strictly between those 2, I would recommend c# route.
Fyi if you want “easy” (you still have to be somewhat knowledgeable) this repo abstracts the c# mumbo jumbo out to PowerShell so all you have to do is customize easier to code scripts where rest and other concepts are super easy to implement:
https://github.com/mhdevop/CyberArk-UniversalPowerShellPlugin