How to get credentials' Load Profile and Local value from .NET API - VisualCron - Forum

Community forum

ecao
  •  ecao
  • No customer Topic Starter
2017-10-13T06:00:30Z
Hi,

I am trying to validate our production environment's VisualCron7.1.6 configuration by .NET API (C#). I need to validate username, Load Profile and Local setting in the defined Credential. From Help deocument, I only found that Credentials.GetUsername to get user name, how can I get the credential's Load Profile and Local value?

Thanks very much!
Support
2017-10-16T11:40:02Z
These options are part of "ImpersonationOptions" property of the Credential. It might be, that in very old version like yours - those properties are on the Execute Task instead of in the Credential.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ecao
  •  ecao
  • No customer Topic Starter
2017-10-25T09:58:13Z
Originally Posted by: Support 

These options are part of "ImpersonationOptions" property of the Credential. It might be, that in very old version like yours - those properties are on the Execute Task instead of in the Credential.



Thanks, it works.

Another question is, I want to get the Credential's Domain info, but Domain property value of NetworkCredentialClass is encrypted. In VisualCron API document of this property Remarks, it says "Needs to be encrypted/decrypted".
How can I make it decrypted or how to get the decrypted credential domain info directly?
I noticed that there's a class named NetworkCredentialDecryptedClass, but I don't know how to get a list of the current existing credential as this type.

Thanks!
Support
2017-10-25T10:14:22Z
Originally Posted by: ecao 

Originally Posted by: Support 

These options are part of "ImpersonationOptions" property of the Credential. It might be, that in very old version like yours - those properties are on the Execute Task instead of in the Credential.



Thanks, it works.

Another question is, I want to get the Credential's Domain info, but Domain property value of NetworkCredentialClass is encrypted. In VisualCron API document of this property Remarks, it says "Needs to be encrypted/decrypted".
How can I make it decrypted or how to get the decrypted credential domain info directly?
I noticed that there's a class named NetworkCredentialDecryptedClass, but I don't know how to get a list of the current existing credential as this type.

Thanks!



You need to user a newer version which has server.Decrypt( method.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top