This function returns the current and maximum number of team users with roles.
uapi --output=jsonpretty \ --user=username \ Team \ get_team_users_with_roles_count
{- "apiversion": 3,
- "func": "get_team_users_with_roles_count",
- "module": "Team",
- "result": {
- "data": {
- "max": 7,
- "used": 2
}, - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}