Skip to main content
replaced http://salesforce.stackexchange.com/ with https://salesforce.stackexchange.com/
Source Link

There is an idea to Import of profile IP Ranges.Workaround is herehere from @sfdcfox

Use the Metadata API Toolkit.

First, install the tool (see Setup > Develop > Tools).

Second, create a new directory to work from, build a build.xml file (see samples in the toolkit file).

You'll need a retrieve.xml file (whatever you choose to name it) that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Run sf:retrieve against this XML file, and you'll end up with results like this:

src/package.xml
src/profiles/Admin.profile
src/profiles/Content Only User.profile
src/profiles/ContractManager.profile
(more profiles)

Next, edit each profile file, adding in loginIpRanges:

<loginIpRanges>
    <endAddress>x.x.x.x</endAddress>
    <startAddress>y.y.y.y</startAddress>
</loginIpRanges>

You can copy and paste them between each profile, if need be.

Finally, run sf:deploy using deployRoot="src" (if that is what the original retrieve used) to instantly upload all IP ranges to all profiles in one step.

You can do the same thing with the Force.com IDE if you don't like command prompts.

There is an idea to Import of profile IP Ranges.Workaround is here from @sfdcfox

Use the Metadata API Toolkit.

First, install the tool (see Setup > Develop > Tools).

Second, create a new directory to work from, build a build.xml file (see samples in the toolkit file).

You'll need a retrieve.xml file (whatever you choose to name it) that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Run sf:retrieve against this XML file, and you'll end up with results like this:

src/package.xml
src/profiles/Admin.profile
src/profiles/Content Only User.profile
src/profiles/ContractManager.profile
(more profiles)

Next, edit each profile file, adding in loginIpRanges:

<loginIpRanges>
    <endAddress>x.x.x.x</endAddress>
    <startAddress>y.y.y.y</startAddress>
</loginIpRanges>

You can copy and paste them between each profile, if need be.

Finally, run sf:deploy using deployRoot="src" (if that is what the original retrieve used) to instantly upload all IP ranges to all profiles in one step.

You can do the same thing with the Force.com IDE if you don't like command prompts.

There is an idea to Import of profile IP Ranges.Workaround is here from @sfdcfox

Use the Metadata API Toolkit.

First, install the tool (see Setup > Develop > Tools).

Second, create a new directory to work from, build a build.xml file (see samples in the toolkit file).

You'll need a retrieve.xml file (whatever you choose to name it) that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Run sf:retrieve against this XML file, and you'll end up with results like this:

src/package.xml
src/profiles/Admin.profile
src/profiles/Content Only User.profile
src/profiles/ContractManager.profile
(more profiles)

Next, edit each profile file, adding in loginIpRanges:

<loginIpRanges>
    <endAddress>x.x.x.x</endAddress>
    <startAddress>y.y.y.y</startAddress>
</loginIpRanges>

You can copy and paste them between each profile, if need be.

Finally, run sf:deploy using deployRoot="src" (if that is what the original retrieve used) to instantly upload all IP ranges to all profiles in one step.

You can do the same thing with the Force.com IDE if you don't like command prompts.

edited body
Source Link
sfdc
  • 13.8k
  • 19
  • 136
  • 218

There is an idea to Import of profile IP Ranges.Workaround From @sfdcfox is here from @sfdcfox

Use the Metadata API Toolkit.

First, install the tool (see Setup > Develop > Tools).

Second, create a new directory to work from, build a build.xml file (see samples in the toolkit file).

You'll need a retrieve.xml file (whatever you choose to name it) that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Run sf:retrieve against this XML file, and you'll end up with results like this:

src/package.xml
src/profiles/Admin.profile
src/profiles/Content Only User.profile
src/profiles/ContractManager.profile
(more profiles)

Next, edit each profile file, adding in loginIpRanges:

<loginIpRanges>
    <endAddress>x.x.x.x</endAddress>
    <startAddress>y.y.y.y</startAddress>
</loginIpRanges>

You can copy and paste them between each profile, if need be.

Finally, run sf:deploy using deployRoot="src" (if that is what the original retrieve used) to instantly upload all IP ranges to all profiles in one step.

You can do the same thing with the Force.com IDE if you don't like command prompts.

There is an idea to Import of profile IP Ranges.Workaround From @sfdcfox is here

Use the Metadata API Toolkit.

First, install the tool (see Setup > Develop > Tools).

Second, create a new directory to work from, build a build.xml file (see samples in the toolkit file).

You'll need a retrieve.xml file (whatever you choose to name it) that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Run sf:retrieve against this XML file, and you'll end up with results like this:

src/package.xml
src/profiles/Admin.profile
src/profiles/Content Only User.profile
src/profiles/ContractManager.profile
(more profiles)

Next, edit each profile file, adding in loginIpRanges:

<loginIpRanges>
    <endAddress>x.x.x.x</endAddress>
    <startAddress>y.y.y.y</startAddress>
</loginIpRanges>

You can copy and paste them between each profile, if need be.

Finally, run sf:deploy using deployRoot="src" (if that is what the original retrieve used) to instantly upload all IP ranges to all profiles in one step.

You can do the same thing with the Force.com IDE if you don't like command prompts.

There is an idea to Import of profile IP Ranges.Workaround is here from @sfdcfox

Use the Metadata API Toolkit.

First, install the tool (see Setup > Develop > Tools).

Second, create a new directory to work from, build a build.xml file (see samples in the toolkit file).

You'll need a retrieve.xml file (whatever you choose to name it) that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Run sf:retrieve against this XML file, and you'll end up with results like this:

src/package.xml
src/profiles/Admin.profile
src/profiles/Content Only User.profile
src/profiles/ContractManager.profile
(more profiles)

Next, edit each profile file, adding in loginIpRanges:

<loginIpRanges>
    <endAddress>x.x.x.x</endAddress>
    <startAddress>y.y.y.y</startAddress>
</loginIpRanges>

You can copy and paste them between each profile, if need be.

Finally, run sf:deploy using deployRoot="src" (if that is what the original retrieve used) to instantly upload all IP ranges to all profiles in one step.

You can do the same thing with the Force.com IDE if you don't like command prompts.

Source Link
sfdc
  • 13.8k
  • 19
  • 136
  • 218

There is an idea to Import of profile IP Ranges.Workaround From @sfdcfox is here

Use the Metadata API Toolkit.

First, install the tool (see Setup > Develop > Tools).

Second, create a new directory to work from, build a build.xml file (see samples in the toolkit file).

You'll need a retrieve.xml file (whatever you choose to name it) that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Run sf:retrieve against this XML file, and you'll end up with results like this:

src/package.xml
src/profiles/Admin.profile
src/profiles/Content Only User.profile
src/profiles/ContractManager.profile
(more profiles)

Next, edit each profile file, adding in loginIpRanges:

<loginIpRanges>
    <endAddress>x.x.x.x</endAddress>
    <startAddress>y.y.y.y</startAddress>
</loginIpRanges>

You can copy and paste them between each profile, if need be.

Finally, run sf:deploy using deployRoot="src" (if that is what the original retrieve used) to instantly upload all IP ranges to all profiles in one step.

You can do the same thing with the Force.com IDE if you don't like command prompts.