getOrCreateUser()

Overview

public string function getOrCreateUser(
      required string loginId
    ,          struct data   
)

Allows external services to create users on the fly if they do not already exist based on the loginId. Useful for single sign on extensions, for example.

Arguments

NameTypeRequiredDescription
loginIdstringYesLogin ID or email address with which to match any existing users in the system
datastructNoAdditional fields to set on the user when creating/updating existing user