LoginScopeHeader

Specifies your organization ID so that you can authenticate Self-Service users for your organization using the existing login().

Starting with Spring ’12, the Self-Service portal isn’t available for new Salesforce orgs. Existing orgs continue to have access to the Self-Service portal.

login()

Type: ID

Description: The ID of the organization against which you authenticate Self-Service users.

Type: ID

Description: Specify only if user is a Customer Portal user. The ID of the portal for this organization. The ID is available in the Salesforce user interface: Values include From Setup, enter Customer Portal Settings in the Quick Find box, then select Customer Portal Settings, or Select a Customer Portal name, and on the Customer Portal detail page, the URL of the Customer Portal displays. The Portal ID is in the URL..

This sample shows how to use the LoginScopeHeader. It sets the organization ID and the portal ID for a Customer Portal user. It also sets the CallOptions header. It then logs the specified user in.