Trick To Escape from Saleforce Firewall and Login Directly| User Session Information

0
2348
Hack to login salesforce directly-user information-firewall hack
Hack to login salesforce directly-user information-firewall hack

Hello Salesforce Cody’s,

This post is to just show you how you can login to a salesforce org without any single entry to the “User Session Information”.

Let’s jump-In.

First of all you need few things,

  • Your Salesforce Org URL,
  • Session ID, (will get you one shortly below)

Run below Script in Anonymous Window.


system.debug(userinfo.getOrganizationId()+'-'+userinfo.getSessionId().subString(15));

//getOrganizationId:  Returns the context organization's ID.
//getSessionId : Returns the session ID for the current session.

Your should get above LONG SessionId.

now, Get your Salesforce URL, in my case it is

URL : https://Dev-UmeshBeti-salesforce-code.lightning.force.com (you need find and replace your URL)

FINAL Step

Get the session ID, which we generated above from Anonymous Window .

URL Pattern: yourSalesforceORG_URL/secur/frontdoor.jsp?sid=SessionID YOU GENERATED PASTE HERE

ALL SET, Your Final your should look like this:

https://Dev-UmeshBeti-salesforce-code.lightning.force.com/secur/frontdoor.jsp?sid=00D9A000002i9q0UAA@@ARMAQHgEUDmCGM9hssA5YLOWC0_97OHw48ZXiX61snByemZL6iytjmT_Vb0iDdU5bVRL9FccdPzdnqNMoQymk1SUDAvSlPma

After this, copy the generated link manually and share the link with anyone who wants to login, from any place. the link will allow you directly to salesforce. GOOD LUCK.

Salesforce Documentation

1. getOrganizationId()

Returns the context organization’s ID.

Signature

public static String getOrganizationId()

Return Value

Type: String

2. getSessionId()

Returns the session ID for the current session.

Signature

public static String getSessionId()

Return Value

Type: String

Usage

You can use getSessionId() both synchronously and asynchronously. In asynchronous Apex (Batch, Future, Queueable, or Scheduled Apex), this method returns the session ID only when the code is run by an active, valid user. When the code is run by an internal user, such as the automated process user or a proxy user, the method returns null.

As a best practice, ensure that your code handles both cases: when a session ID is or is not available.

Affordable Ways to Boost Your Resume Affordable Ways to Demonstrate Your Salesforce Knowledge Affordable Ways to Enhance Your Career Affordable Ways to Get Certified Affordable Ways to Validate Your Salesforce Skills Apex Buy Your Certification Vouchers Today Discounted Certification Exam Vouchers Discounted Exam Vouchers Discounted Exam Vouchers for Salesforce Certifications Discounted Salesforce Certification Exams Discounted Vouchers for Salesforce Certifications Get Certified and Boost Your Career Get Certified and Boost Your Earnings Get Certified and Get Ahead Get Certified and Stand Out from the Crowd Get Certified at a Discount Get Certified at a Discounted Price Invest in Your Career with Certification Invest in Your Future with Salesforce Certification Maximize Your Salesforce Career Potential Saleforce crm Salesforce Salesforce Certification salesforce certification coupon codes Salesforce Certification Preparation salesforce certification vouchers SalesforceCody Salesforce Cody Salesforce Exam Salesforce Interview Salesforce Interview Questions Salesforce Trigger Salesforce Trigger Advance Salesforce Trigger Basics Salesforce Trigger Example Salesforce Triggers Tasks Salesforce Trigger Tasks Salesforce Updates Save Money and Get Certified Save Money on Certification Exams Save Money on Salesforce Certification Exams Save Money on Your Exams Trigger Trigger Tasks Apex

For more UserInfo Class, check below link.

https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_userinfo.htm

CONTACT US

Let us know if query, post comments if you stuck at somewhere will help you.

Contact us @salesforcecodyadmin [email protected]

Connect Us on Facebook : https://www.facebook.com/SalesforceCody

Connect me on Linkedin: https://www.linkedin.com/in/umeshbeti