This function lists the external authentication links to the current cPanel account.
uapi --output=jsonpretty \ --user=username \ ExternalAuthentication \ get_authn_links
{- "apiversion": 3,
- "func": "get_authn_links",
- "module": "ExternalAuthentication",
- "result": {
- "data": [
- {
- "link_time": 1443124604,
- "preferred_username": "username@gmail.com",
- "provider_id": "google",
- "provider_protocol": "openid_connect",
- "subject_unique_identifier": 123456789012346
}
], - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}