Skip to content

Instantly share code, notes, and snippets.

@stomita
Last active August 28, 2015 09:45
Show Gist options
  • Save stomita/538bfaac981571fd6e7d to your computer and use it in GitHub Desktop.
Save stomita/538bfaac981571fd6e7d to your computer and use it in GitHub Desktop.
security change after signup of DE
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