Last active
August 28, 2015 09:45
-
-
Save stomita/538bfaac981571fd6e7d to your computer and use it in GitHub Desktop.
security change after signup of DE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var connName = process.args[1]; | |
console.log('connection = ' + connName); | |
var conn = jsforce.registry.getConnection(connName); | |
conn.identity().then(function() { | |
return conn.metadata.update('SecuritySettings', { fullName: 'Security', passwordPolicies: { expiration: 'Never' }}); | |
}).then(function() { | |
return conn.metadata.update('Profile', { fullName: 'Admin', loginIpRanges: { startAddress:'0.0.0.0', endAddress: '255.255.255.255' } }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment