Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I'm using Salesforce as the Identity Provider to log in to my Google Apps email, what happens when Salesforce wants to verify my identity by emailing a login verification code?

As I think about it:

  • I can't log in to Salesforce b/c I don't have the verification code
  • I can't get the verification code because I need to log in to Salesforce to access my email.

I'm sure there's a work-around for this, but don't see anything in the docs and would want to resolve this before considering an implementation. Have you run into this situation?

share|improve this question
up vote 3 down vote accepted

Another option, that doesn't involve opening IP ranges, is to enable SMS Identity Confirmation by navigating to Your Name | Setup | Security Controls | Session Settings and checking Enable SMS-based identity confirmation.

share|improve this answer

I don't have an elegant solution, but I have a solution nonetheless. You can remove the requirement for verification codes by adding your known trusted network IP ranges (Setup > Security Controls > Network Access) or by contacting support and getting the verification process disabled.

You can only enter small IP-ranges manually so if your users are logging in from the public internet you'd need to add every range possible. This could be time consuming but there is an app for that!

share|improve this answer

If you have Enterprise/Platform or Unlimited edition, you can enter a large trusted IP range (eg: - in your Profile via:

Setup -> Manage Users -> Profile -> Click the profile you use -> in the related list at Login IP Ranges, click new, and enter the large IP range.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.