SSO_SYNC no funciona

As per

You have to use the following:

$api_username = 'system';