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
kallam salesforce1kallam salesforce1 

I need to assign Login IP Ranges to Profile. How can we achieve it by using Apex code ?

PriyaPriya (Salesforce Developers) 
Hey Kallam,

Can you kindly elaborate the use case of your requirement?

You can directly set the IP ranges in the profile by editing that profile through admin process.

Thanks!
kallam salesforce1kallam salesforce1

Hi Priya,

We can assign IP Ranges through the Admin process, How we can achieve it by using Code?

Suppose I have one profile 'Santared User'. I need to assign a Starting IP Address and an Ending IP Address to the profile. How can I achieve it by Coding?