Hot answers tagged

15 votes
Accepted

remove advertising on login page of Salesforce

If you have SSO then I assume you have My Domain enabled. In the My Domain setup you can set the right frame URL, if it's blank it loads the ad from Salesforce. I would point it to some internal page ...
Dan Wooding's user avatar
  • 3,468
12 votes

Salesforce password reset link expires immediately upon request

There's a Salesforce Knowledge article about this. It is caused, as other posters have said, by the email server protection software. Salesforce lists Mimecast, McAfee's 'Link Protect' feature, ...
Trish's user avatar
  • 121
10 votes
Accepted

Multiple SFDC Users on one PC

This is a question many Salesforce consultants will face - we will need to open many Salesforce instances and many of them are under the same domain. I would recommend using some multi-session ...
Lance Shi's user avatar
  • 12.9k
9 votes
Accepted

Access scratch org from login.salesforce.com or test.salesforce.com

This is not possible. Scratch orgs are always on test.salesforce.com, although you may also use the scratch org's Instance URL (My Domain) to initiate login. current behavior is when I create scratch ...
David Reed's user avatar
  • 91.7k
8 votes
Accepted

Is there a better way to do two-factor authentication?

There's two main ways to use 2FA. The first is where you enter a code each time you log in, and the second is where you authenticate the login through a mobile app. If you install the Salesforce ...
sfdcfox's user avatar
  • 476k
8 votes
Accepted

Username-Password OAuth Authentication for community users?

In the profile of the user make it as API enabled. I was able to log in using api inside the community using the below soap login call., <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"...
Pranay Jaiswal's user avatar
8 votes

What is aura.redirect?

No documentation can be found in Salesforce but it just works. The other issue I found is that for some reason test classes don't work well with them. Hence I include code like if(!Test....
Francis A.'s user avatar
8 votes

Why can't I force:org:open my scratch org?

On inspection I saw that the POD (instance) on which my scratch orgs exist had been upgraded to Spring '20 on Saturday. The only solution I could find was to delete my scratch orgs and re-create them ...
Phil W's user avatar
  • 33.4k
7 votes

Salesforce password reset link expires immediately upon request

For those who are experiencing this issue on Outlook, if the URL as presented by Outlook begins with something like https://nam02.safelinks.protection.outlook.com/?url=<escaped_sfdc_url>, then ...
Dave Land's user avatar
  • 171
6 votes

Auto login links via login.jsp with username and password in query string have stopped working

I think this is still supported if you drop the login.jsp and put the query string after the slash: https://login.salesforce.com/[email protected]&pw=hunter12 Note to other readers ...
Matt and Neil's user avatar
6 votes

Salesforce password reset link expires immediately upon request

Is your email going through a virus scanner that checks links within emails for malware etc. ? The password reset link you are being sent expires as soon as the link is visited. Having an admin send ...
Jason's user avatar
  • 832
6 votes

Webassessor Email Address & Login change

I've had to do this. Whilst you can change most details on the Edit Profile page, your e-mail address is something you can't change. You'll need to contact them directly, you can use ktnsupport@...
Dan Jones's user avatar
  • 7,137
6 votes
Accepted

Sandbox verification emails

Have a look at the SandboxPostCopy Interface. It should be possible to have Apex run after the Sandbox is created and then modify the specific User records email address fields.
Daniel Ballinger's user avatar
5 votes

What is the equivalent of Site.login(username, password, url) in the Lightning environment?

When I recently turned on communities this example controller (and a login form Lightning Component front) end was automatically added to the Developer Edition org: global class ...
Keith C's user avatar
  • 134k
5 votes

Can a Login Flow know which Connected App started it?

You may be in luck. There's something call the ExperienceID or expid that potentially could be used to do what you want to achieve. Its primary purpose is to be able to customize the "branding ...
crmprogdev's user avatar
  • 40.8k
5 votes
Accepted

Why can't I force:org:open my scratch org?

This issue is due to Spring '20 and can happen with new scratch orgs too. Not all sandbox pods are affected. The event emitter warning has nothing to do with the actual problem. The underline issue ...
Amphro's user avatar
  • 603
4 votes

Salesforce password reset link expires immediately upon request

Recently I've faced the same issue. Every time I clicked on the password reset link in my email from Outlook office, I saw "Your reset link expired after 24 hours or has already been used.". Once ...
Oleh Berehovskyi's user avatar
4 votes

Using SOQL, how can I tell which users are CURRENTLY logged into Salesforce

You can query the AuthSession object to get the active sessions, which will include any that haven't ended due to timeout or the user explicitly logging out. There will generally be multiple ...
xn.'s user avatar
  • 2,408
4 votes
Accepted

Auto login links via login.jsp with username and password in query string have stopped working

I believe this is related to Knowledge Article 000229717 - www.salesforce.com API Endpoint Retirement. Essentially, you need to use https://login.salesforce.com for production and developer edition ...
Daniel Ballinger's user avatar
4 votes

Is there any way around Verification Code ? I am using Selenium and Java to Automate Test

The verification code mechanism exists for good reasons and improves the security of production data. However in a dev org I often use the following approach to dissable all verificaiton codes, as it ...
dacology's user avatar
  • 2,952
4 votes

Does an iOS app accessing SF through Mobile SDK need to be listed as a "Connected App"

This is similar to the question I answered here. The Connected app - client id and client secret can be from any org and it does not matter if you're not seeing that connected app in your org. This ...
Gaurav Kheterpal's user avatar
4 votes
Accepted

IP Address Restrictions Other Than Profile-Based?

You can't have assign IP restrictions through Permission sets (or) Workflows or any other ways. For your problem you have to assign a separate profile for the user is only the way.
Pavan tej's user avatar
  • 1,479
4 votes

Verification Code Every Login

You can whitelist your IP Address in Salesforce. This way you can skip verification code step. To add your IP address to Salesforce; Find your ip address by searching google with "what's my ip ...
tugce's user avatar
  • 2,541
4 votes
Accepted

What is the value of using an OAuth flow for your own external systems

Storing the username and password - Ultimately something has to be stored, and an access token can be used to access resources just as easily as a username and password. That's one point of view, but ...
sfdcfox's user avatar
  • 476k
4 votes

remove advertising on login page of Salesforce

If you are using chrome, you can make a chrome extension to do this. Firefox and I think Safari also allow you to make extensions. My extension widens the login inputs, but making the advertising div ...
Caspar Harmer's user avatar
4 votes
Accepted

Does the Last Login Date become blank after a user hasn't logged in for 6 months?

Last Login is NOT cleared after 6 months. It shows just fine. My example I was going to show last logged in 7/2016 As for updating the last login, yes, if the user logs in via API it does update the ...
Eric's user avatar
  • 53.9k
4 votes
Accepted

Locked out of sandbox login, can I change it manually from prod?

You should be able to submit a case (in production) to have them unlock/reset your password in the sandbox. Your only other alternative would be to refresh the sandbox, which I presume you don't want ...
sfdcfox's user avatar
  • 476k
4 votes
Accepted

Can you access the IP address of the current logged in user through Apex code?

You should be able to query AuthSession.SourceIp. An AuthSession record with a SessionType of SubstituteUser is created when you log in as another user.
xn.'s user avatar
  • 2,408
4 votes
Accepted

Received no welcome email, no password reset email, and no way to reset password for Community user

Here are few steps which you need to make sure are correct and they will surely solve your problem. Make sure your community is in active state and not in Preview mode. Make sure the community user ...
Tushar Sharma's user avatar
4 votes
Accepted

"Log in to Community as User" Button Missing

With Winter '18, Users can manage Community Users in Lightning Experience. Snippet from the release notes: No more switching between Lightning Experience and Salesforce Classic to manage external ...
Jayant Das's user avatar
  • 30.2k

Only top scored, non community-wiki answers of a minimum length are eligible