Sorry about the error in the code I supplied. I was reading the plugin’s code wrong. The way you are calling the function is correct. This should also work:
WPDiscourse\Utilities\Utilities::sync_sso_record($sso_params, 3992);
I will edit that into my previous post.
This is the error:
{“failed”:“FAILED”,“message”:“The external_id is required but was blank”}
You need to set the external_id
parameter in your $sso_params_array
. The external_id
should be set to the user’s WordPress ID.