This function lists the team users connected to a cPanel account. This list is given in an array by default, but can be given in a hash.
uapi --output=jsonpretty \ --user=username \ Team \ list_team
{- "apiversion": 3,
- "func": "list_team",
- "module": "Team",
- "result": {
- "data": [
- {
- "contact-email": "team_user@example.com",
- "created": 1650036110,
- "expire_date": 1674575562,
- "expire_reason": "team user 1 year",
- "lastlogin": 1650046110,
- "locale": "en",
- "notes": "This is a note about team user.",
- "password": "encryptedpassword",
- "roles": [
- "email,web"
], - "secondary-contact-email": "team_user_backup@example.com",
- "services": {
- "email": "500*2**20",
- "ftp": 1,
- "webdisk": "rw"
}, - "suspend_date": 1650046210,
- "suspend_reason": "team user is on vacation",
- "username": "teamuser"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}