> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zoho CRM: User Groups Get Sources Count

> Count the users, roles, territories and groups in a Zoho CRM user group. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Count the users, roles, territories and groups in a Zoho CRM user group.

> [!NOTE]
>
> Tool ID: `zoho_crm_user_groups_get_sources_count`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_user_groups_get_sources_count',
  {
    "group": "1234567890"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_user_groups_get_sources_count --input '{
  "group": "1234567890"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "sources_count": [
      {
        "territories": 123,
        "roles": 123,
        "groups": 123
      }
    ]
  }
}
```

Use `deepline describe zoho_crm_user_groups_get_sources_count --json` for the latest machine-readable contract.

## Input reference

Get the count of sources (territories, roles, groups, and users) for the specified user group.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.group` | `"1234567890"` | Yes | — | The unique identifier of the user group Allowed: `1234567890`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Get the count of sources (territories, roles, groups, and users) for the specified user group.",
    "properties": {
      "group": {
        "type": "string",
        "description": "The unique identifier of the user group",
        "enum": [
          "1234567890"
        ]
      }
    },
    "required": [
      "group"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Response containing sources count for the user group |
| `result.data.sources_count` | `array` | Yes | — | Array of sources count information Maximum items: 1. |
| `result.data.sources_count[].territories` | `integer` | No | — | Number of territories Format: `int32`. |
| `result.data.sources_count[].roles` | `integer` | No | — | Number of roles Format: `int32`. |
| `result.data.sources_count[].groups` | `integer` | No | — | Number of groups Format: `int32`. |
| `result.data.sources_count[].users` | `object` | No | — | User count by status |
| `result.data.sources_count[].users.inactive` | `integer` | Yes | — | Number of inactive users Format: `int32`. |
| `result.data.sources_count[].users.deleted` | `integer` | Yes | — | Number of deleted users Format: `int32`. |
| `result.data.sources_count[].users.active` | `integer` | Yes | — | Number of active users Format: `int32`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Response containing sources count for the user group",
        "properties": {
          "sources_count": {
            "type": "array",
            "description": "Array of sources count information",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Count of sources by type",
              "properties": {
                "territories": {
                  "type": "integer",
                  "description": "Number of territories",
                  "format": "int32"
                },
                "roles": {
                  "type": "integer",
                  "description": "Number of roles",
                  "format": "int32"
                },
                "groups": {
                  "type": "integer",
                  "description": "Number of groups",
                  "format": "int32"
                },
                "users": {
                  "type": "object",
                  "description": "User count by status",
                  "properties": {
                    "inactive": {
                      "type": "integer",
                      "description": "Number of inactive users",
                      "format": "int32"
                    },
                    "deleted": {
                      "type": "integer",
                      "description": "Number of deleted users",
                      "format": "int32"
                    },
                    "active": {
                      "type": "integer",
                      "description": "Number of active users",
                      "format": "int32"
                    }
                  },
                  "required": [
                    "inactive",
                    "deleted",
                    "active"
                  ],
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          }
        },
        "required": [
          "sources_count"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.