Retrieve User details Associated with a Territory
Purpose
To retrieve the details of the user added to the territory in your Zoho CRM organization.
Endpoints
- GET /settings/territories/{territory_ID}/users
- GET /settings/territories/{territory_ID}/users/{user_ID}
Request Details
Request URL
To retrieve the details of all users 
{api-domain}{api-domain}/crm/{version}/settings/territories/{territory_ID}/users
To retrieve the details of a specific user:
{api-domain}{api-domain}/crm/{version}/settings/territories/{territory_ID}/users/{user_ID}
Header
Authorization: Zoho-oauthtokend92d4xxxxxxxxxxxxx15f52
Scope
ZohoCRM.users.READ
Sample Request
Copiedcurl "https://www.zohoapis.com/crm/v8/settings/territories/431581000000744113/users"
-X GET
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"Response JSON
- country, city, street, state, country_locale, zipstringRepresents the address of the user. 
- roleJSON objectRepresents the name and ID of the role of the user. 
- localestringRepresents the user's locale. For instance, 'en_IN'. 
- Modified_ByJSON objectRepresents the name and ID of the user who last modified the user's details. 
- CurrencystringRepresents the user's currency preference. 
- aliasstringRepresents the alias name of the user. 
- idstringRepresents the unique ID of the user. 
- fax, email, mobile, phonestringRepresents the contact details of the user. 
- first_namestringRepresents the first name of the user. 
- Reporting_ToJSON objectRepresents the name and ID of the user to whom the user reports to. 
- created_timestringRepresents the date and time at which the user was created. 
- websitestringRepresents the user's website details. 
- Modified_TimestringRepresents the date and time at which the user's details were last modified. 
- profileJSON objectRepresents the name and ID of the profile of the user. 
- last_namestringRepresents the last name of the user. 
- time_zonestringRepresents the current user's timezone. 
- created_byJSON objectRepresents the name and ID of the user who created the user. 
- zuidstringRepresents the ZUID of the current user. 
- confirmbooleanRepresents if the user is a confirmed user. 
 true: The user is a confirmed user.
 false: The user is not a confirmed user.
- full_namestringRepresents the full name of the user in the format specified in "name_format" key. 
- dobstringRepresents the date of birth of the user. 
- date_formatstringRepresents the date format. For instance, 'MM/dd/yyyy'. 
- time_formatstringRepresents the time format. For instance, 'hh:mm a'. 
- statusstringRepresents the status of the user. 
 active: The user is active.
 inactive: The user is inactive.
- signaturestringRepresents the user's signature. 
- name_format__sstringRepresents the format of the full_name of the user. For instance, 'Salutation,First Name,Last Name'. 
- sort_order_preference__sstringRepresents how the records in the response are sorted based on either the last name or first name. The default sorting happens by the record IDs. 
- languagestringRepresents the language in which the user accesses the CRM. For instance, 'en_US'. 
- microsoftbooleanRepresents if the user is a microsoft user. 
 Possible values:
 true: The user is a microsoft user.
 false: The user is a microsoft user.
- personal_accountbooleanRepresents if the user is the only user in the organization. 
 Possible values:
 true: The user is the only user in the organization.
 false: The user is not the only user in the organization.
- IsonlinebooleanRepresents if the user is online. 
 Possible values:
 true: The user is online.
 false: The user is offline.
- themeintegerRepresents the details of the theme selected by the user. 
- Number_SeparatorstringRepresents the format of the number fields. Possible values: "comma", "period" and "space". 
- Decimal_SeparatorstringRepresents the format of the decimal fields. Possible values: "comma" and "period". 
Possible Errors
- INVALID_REQUEST_METHODHTTP 400The http request method type is not a valid one 
 Resolution: You have specified an invalid HTTP method to access the API URL. Specify a valid request method. Refer to endpoints section above.
- AUTHORIZATION_FAILEDHTTP 400User does not have sufficient privilege to access the records 
 Resolution: The user does not have the permission to access the records. Contact your system administrator.
- OAUTH_SCOPE_MISMATCHHTTP 401The access token you have used to make this API call does not have the required scope. 
 Resolution: Generate a new access token with the required scopes for this API. Refer to Scope section at the beginning of this page for the list of required scopes.
Sample Response
Copied{
    "users": [
        {
            "country": "IN",
            "name_format__s": "Salutation,First Name,Last Name",
            "language": "en_US",
            "microsoft": false,
            "$shift_effective_from": null,
            "id": "431581000000258001",
            "state": "Karnataka",
            "fax": null,
            "country_locale": "en_US",
            "sandboxDeveloper": false,
            "zip": null,
            "decimal_separator": "Period",
            "created_time": "2023-02-01T10:09:10+05:30",
            "time_format": "hh:mm a",
            "offset": 19800000,
            "profile": {
                "name": "Administrator",
                "id": "431581000000031157"
            },
            "created_by": {
                "name": "Patricia Boyle",
                "id": "431581000000258001"
            },
            "zuid": "60019394663",
            "full_name": "Patricia Boyle",
            "phone": null,
            "dob": null,
            "sort_order_preference__s": "First Name,Last Name",
            "status": "active",
            "role": {
                "name": "CEO",
                "id": "431581000000031151"
            },
            "customize_info": {
                "notes_desc": null,
                "show_right_panel": null,
                "bc_view": null,
                "show_home": false,
                "show_detail_view": true,
                "unpin_recent_item": null
            },
            "city": null,
            "signature": null,
            "locale": "en_US",
            "personal_account": false,
            "Isonline": true,
            "default_tab_group": "0",
            "Modified_By": {
                "name": "Patricia Boyle",
                "id": "431581000000258001"
            },
            "street": null,
            "$current_shift": null,
            "alias": null,
            "theme": {
                "normal_tab": {
                    "font_color": "#FFFFFF",
                    "background": "#222222"
                },
                "selected_tab": {
                    "font_color": "#FFFFFF",
                    "background": "#222222"
                },
                "new_background": null,
                "background": "#F3F0EB",
                "screen": "fixed",
                "type": "default"
            },
            "first_name": "Patricia Boyle",
            "email": "patricia@zohotest.com",
            "status_reason__s": null,
            "Modified_Time": "2023-05-24T17:37:14+05:30",
            "website": null,
            "$next_shift": null,
            "mobile": null,
            "last_name": null,
            "time_zone": "Asia/Kolkata",
            "number_separator": "Comma",
            "confirm": true,
            "date_format": "dd/MM/yyyy",
            "category": "regular_user"
        },
        {
            "country": null,
            "role": {
                "name": "Manager",
                "id": "431581000000031154"
            },
            "city": null,
            "language": "en_US",
            "locale": "en_US",
            "microsoft": false,
            "Isonline": false,
            "Modified_By": {
                "name": "Patricia Boyle",
                "id": "431581000000258001"
            },
            "$shift_effective_from": null,
            "street": null,
            "$current_shift": null,
            "alias": null,
            "id": "431581000000278001",
            "state": null,
            "fax": null,
            "country_locale": "en_US",
            "sandboxDeveloper": false,
            "first_name": "J Smith",
            "email": "jsmith@zohotest.com",
            "zip": null,
            "status_reason__s": null,
            "decimal_separator": "Period",
            "created_time": "2023-02-03T10:05:00+05:30",
            "Modified_Time": "2023-05-24T17:37:26+05:30",
            "website": null,
            "time_format": "hh:mm a",
            "$next_shift": null,
            "offset": 19800000,
            "profile": {
                "name": "Standard",
                "id": "431581000000031160"
            },
            "mobile": null,
            "last_name": null,
            "time_zone": "Asia/Kolkata",
            "number_separator": "Comma",
            "created_by": {
                "name": "Patricia Boyle",
                "id": "431581000000258001"
            },
            "zuid": "60019445391",
            "confirm": true,
            "full_name": "J Smith",
            "phone": null,
            "dob": null,
            "sort_order_preference__s": "null",
            "date_format": "MMM d, yyyy",
            "category": "regular_user",
            "status": "active"
        }
    ],
    "info": {
        "per_page": 200,
        "count": 2,
        "page": 1,
        "more_records": false
    }
}