- Overview
- What's New in V7?
- Changelog
- API Collection
- OAuth Authentication
- OAuth Scopes
- API Limits
- Multi DC Support
- Increase API Credits
- Customize API Usage Notification
- GDPR Compliance
- HIPAA Compliance
- API Dashboard
- HTTP Request Methods
- Status Codes
- Zoho CRM SDKs
- Metadata APIs
- Modules
- Fields
- Layouts
- Related Lists
- Profiles
- Custom View
- Roles
- Global Picklists
- Territories
- GETTerritories
- POSTTerritories
- PUTTerritories
- DELETETerritories
- POSTTransfer and Delete Territories
- GETChild Territories of a Territory
- GETTerritories Assigned
- GETAssociated User Count
- GETRetrieve User details Associated with a Territory
- PUTAssociate Users with Territory
- POSTRemove Territories of Records
- POSTAssign Territories to Records
- DELETEDisassociate Users from Territory
- Scoring Rules
- Variables
- Map Dependency
- Duplicate Check Option
- Data Enrichment
- Create Export Audit Log
- User Groups
- Tags
- Unsubscribe Links
- Cadences
- Pipeline
- Wizards
- Assignment Rules
- Templates
- User's Unavailability
- Portals
- Fiscal Year
- Business Hours
- Holidays
- Record Locking Configuration
- Shift Hours
- Entity APIs
- Organization
- Users
- Records
- Related Records
- Records APIs using External ID
- Related Records Using External ID
- Merge Records
- List of Available APIs
- Features
- Meeting Cancel
- Linking Modules
- Subforms
- Contact Roles
- Photos and Attachments
- Mass Update
- Mass Delete
- Currencies
- Files
- Share
- Fields Attachments
- Recycle Bin
- Change Owner
- Mass Change Owner
- Emails
- Blueprint
- Notes
- Bulk APIs
- Composite API
- Notification APIs
- Query API
Get Sources Count
Purpose
To get the number of users, groups, roles, and territories available in a user group.
Request Details
Request URL
{api-domain}/crm/{version}/settings/user_groups/{groupid}/actions/sources_count
Header
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Scope
scope=ZohoCRM.settings.user_groups.READ
Sample Request
Copiedcurl "https://www.zohoapis.com/crm/v7/settings/user_groups/3652397000009952001/actions/sources_count"
-X GET
-H "Authorization: Zoho-oauthtoken 1000.03xxxxxxxxxxxxxxxxxa5317.dxxxxxxxxxxxxxxxxxfa"
Response JSON Keys
- usersJSON Object
The number of active, inactive and deleted users in this group.
- rolesinteger
The number of roles present in this group.
- territoriesinteger
The number of territories present in this group.
- groupsinteger
The number of groups present in this user group.
Possible Errors
- INVALID_DATAHTTP 400
The group Id is incorrect in the URL.
Resolution: Specify a valid group ID. Use the Get User Groups API to get the ID of the user group.
Sample Response
Copied{
"sources_count": [
{
"territories": 2,
"roles": 2,
"groups": 0,
"users": {
"inactive": 0,
"deleted": 0,
"active": 2
}
}
]
}
© 2025, Zoho Corporation Pvt. Ltd. All Rights Reserved.