Get Data of a Specific Profile

To get the details of any specific profile. Specify the unique id of the profile in your API request to get the data for that particular profile.

Request URL

https://www.zohoapis.com/crm/v2/settings/profiles/{profile_id}

profile_id - Specify the unique id of the profile.

Request Method

GET

Scope

scope=ZohoCRM.settings.profiles.{operation_type}

Possible operation types
ALL - Full access to profile data
READ - get profile data

Sample Request

Copiedcurl "https://www.zohoapis.com/crm/v2/settings/profiles/2883756000000026011"
-X GET
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
      
CopiedZCRMRestClient restClient = ZCRMRestClient.getInstance();
APIResponse response = restClient.getOrganizationInstance().getProfile(3719520000000026011L);
ZCRMProfile profile = (ZCRMProfile) response.getData();
Copieddef get_profile(self):
    try:
        resp=ZCRMOrganization.get_instance().get_profile(1386586000000026014)
        profiles=[resp.data]
        print(resp.status_code)
        for profile in profiles:
            print(profile.name)
            print(profile.id)
            print(profile.is_default)
            print(profile.created_time)
            print(profile.modified_time)
            print(profile.modified_by)
            print(profile.description)
            print(profile.created_by)
            print(profile.category)
            permissions= profile.permissions
            if permissions is not None:
                print(":::PERMISSIONS:::")
                for permission in permissions:
                    print(permission.name)
                    print(permission.id)
                    print (permission.display_label)
                    print(permission.module)
                    print(permission.is_enabled)
            sections= profile.sections
            if sections is not None:
            for section in sections:
                print(section.name)
                categories=section.categories
                if categories is not None:
                    print("::::CATEGORIES:::")
                    for category in categories:
                        print(category.name)
                        print(category.display_label)
                        print(category.permission_ids)
                        print(category.module)
        except ZCRMException as ex:
            print(ex.status_code)
            print(ex.error_message)
            print(ex.error_code)
            print(ex.error_details)
            print(ex.error_content)
      
CopiedZCRMRestClient restClient = ZCRMRestClient.GetInstance();
APIResponse response = restClient.GetOrganizationInstance().GetProfile(33721640000000); // 33721640000000 is profile id
ZCRMProfile profile = (ZCRMProfile)response.Data;
      

Sample Response

Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "3719520000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}

Sample Response

Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "3719520000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}

Sample Response

Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "3719520000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}
Copied{
    "profiles": [
       {
            "name": "Administrator",
            "modified_by": null,
            "description": """This profile will have all the permissions. Users with Administrator profile will be able to view and manage all the data within the organization account by default.",
            "id": "2883756000000026011",
            "category": false
        }
    ]
}