Skip to content

Instantly share code, notes, and snippets.

@tzmfreedom
Created May 16, 2016 10:55
Show Gist options
  • Save tzmfreedom/98a7c04d96b87e614ab674ae8a002e31 to your computer and use it in GitHub Desktop.
Save tzmfreedom/98a7c04d96b87e614ab674ae8a002e31 to your computer and use it in GitHub Desktop.
Samle for setting login IP ranges to profile.
var jsforce = require('jsforce');
var conn = new jsforce.Connection({});
conn.login('{username}', '{password}', function(err, userInfo) {
conn.metadata.update('Profile', {
fullName:'カスタムテストユーザ',
loginIpRanges: [
{
startAddress:'0.0.0.0',
endAddress:'0.255.255.255'
},
{
startAddress:'1.0.0.0',
endAddress:'1.255.255.255'
}]
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment