Skip to main content
Version: 5.7.0

GetSessionForCredential

Creates and returns a session for the credentials provided.

This method is used for when you need a session for a user other than the one calling the script, or when a script does not have a user context by default (ex. S2S or Scheduled).

Method Parameters

ParameterDescription
externalIdUser ID for the given authenticationType
authenticationTypeType of authentication. Full list of types can be found here.
externalAuthTypeOptional parameter to specify the external authenticationType to use for the passed in credentials

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab