Since Orion Platform 2017.3 (NPM 12.2) it's possible to create SNMP and WMI credentials using Orion SDK and use this credentials in discovery.
More information can be found here: Credential Management · solarwinds/OrionSDK Wiki · GitHub