This function checks whether the shared global address book is enabled on the current cPanel account's webmail accounts.
uapi --output=jsonpretty \ --user=username \ DAV \ has_shared_global_addressbook
{- "apiversion": 3,
- "func": "has_shared_global_addressbook",
- "module": "DAV",
- "result": {
- "data": {
- "shared": 1
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}