p1: partition username
p2: user’s username
p3: OPTIONAL Add user if not in system (true/false, default = false)
p4: OPTIONAL # Minutes Link is good for (1-999999, 0 = no limit, default = 0)
String (or Boolean on error)
Returns an encrypted sign-on URL for a user. Typically would be used by an external system to generate a link that can be navigated to by the user, creating a single sign-on scenario so user can seamlessly access their online content without having to login to the LMS (the url does all the work).
Optional parameter p3 can be set to true to add the user to the system if they do not yet exist (the system will generate a random strong password).
Optional parameter p4 can be set to the number of minutes the url will be good for before it no longer provides access. The default is no limit (0).
Example (using Code Kit):
// assumes partition username "anthony" exists
// assumes user username "chris" exists
$data = APICommand( "user__getSSO", "anthony", "chris" );
$xml = simplexml_load_string( $data );