Created
May 16, 2016 10:55
-
-
Save tzmfreedom/98a7c04d96b87e614ab674ae8a002e31 to your computer and use it in GitHub Desktop.
Samle for setting login IP ranges to profile.
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 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