function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lokesh KumarLokesh Kumar 

IP White listing at Profile Level

Hello Geeks,

Wants to know more about how we can whitelist IP's at Profile Level instead of manually.
I want to know is there a way to add IP's Programmatically through API's.

Any suggestion appreciated 

Thanks
Lokesh
SandhyaSandhya (Salesforce Developers) 
Hi,

After some research, I found below link where code is available on GitHub
see if that can help you.

http://salesforce.stackexchange.com/questions/49473/load-ip-whitelist-into-salesforce-via-api

https://github.com/rdehler/sfdc-whitelist-ips-chrome
 
Hope this helps you!

Thanks and Regards
Sandhya
Lokesh KumarLokesh Kumar
HI Sandhya,

Thanks for your answer as I mentioned above in the Question my requirement is to whitelist IP at Profile Level, not Security Level.
The Link shared by you is pointing for Security Level.

Thanks
Lokesh
SandhyaSandhya (Salesforce Developers) 
Hi Lokesh,

I think you can achieve this through metadata API, I have not tried it.However, found below link which has the sample code to set Ip ranges for the profile that may help you.

http://salesforce.stackexchange.com/questions/15701/profile-login-ip-ranges-via-api
 
Thanks and Regards
Sandhya