Skip to content

Zoho: Portal User Types

Zoho portalUserType.getPortalUserTypes: arguments, response, policy and SDK examples.

← Portal user type operations · Get started

Operation zoho.getportalusertypes

Provider route: GET /crm/v8/settings/portals/{portal}/user_type. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["portalUserType"]["getPortalUserTypes"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.portalUserType.getPortalUserTypes(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.portal_user_type.get_portal_user_types(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.portalstringRequired within parentRepresents the unique name of the portal.
Maximum length: 255
queryobjectOptionalAdditional keys: not allowed
query.includestringOptionalOne of: modules
query.include_inner_detailsstringOptionalOne of: field.field_label

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Portal User Types — response body

Referenced models: Portal User Types — response body

Portal User Types — response body
FieldTypePresenceDescription and constraints
$objectRootReturned on a successful request to list all portal user types. Contains an array of user type summary objects.
Additional keys: not allowed
user_typearrayRequired within parentAn array of portal user type summary objects, one per user type configured in the portal.
Maximum items: 5
user_type[]ModelEach itemExpand Portal User Types — response body — user type item

Referenced models: Portal User Types — response body — user type item

Portal User Types — response body — user type item
FieldTypePresenceDescription and constraints
$objectRootA summary representation of a portal user type as returned by the list operation, including identity fields, active status, user counts, and last modification timestamp.
Additional keys: not allowed
activebooleanRequired within parentIndicates whether the portal user type is currently active.
active_user_countJSONRequired within parent
active_user_count (anyOf 1)integerAlternativeRepresents the number of portal users currently assigned to and active under this user type.
Format: int32
active_user_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
created_byModelRequired within parentExpand Portal User Types — response body — user type item created by
created_timestringRequired within parentRepresents the creation timestamp of the user type.
Maximum length: 255
deactive_user_countJSONRequired within parent
deactive_user_count (anyOf 1)integerAlternativeRepresents the number of portal users assigned to this user type who have been deactivated.
Format: int32
deactive_user_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
defaultbooleanRequired within parentIndicates whether this is the default portal user type in the organization. The default user type is automatically assigned when no explicit user type is specified.
idstringRequired within parentRepresents the unique numeric identifier of the portal user type.
Format: int64
Maximum length: 255
invitation_fieldModelRequired within parentExpand Portal User Types — response body — user type item invitation field
modified_byModelRequired within parentExpand Portal User Types — response body — user type item modified by
modified_timestringRequired within parentRepresents the ISO 8601 timestamp of when the portal user type was last modified.
Maximum length: 255
namestringRequired within parentRepresents the name of the portal user type.
Maximum length: 255
personality_moduleModelRequired within parentExpand Portal User Types — response body — user type item personality module

Referenced models: Portal User Types — response body — user type item invitation field, Portal User Types — response body — user type item personality module, Portal User Types — response body — user type item created by, Portal User Types — response body — user type item modified by

Portal User Types — response body — user type item invitation field
FieldTypePresenceDescription and constraints
$objectRootThe invitation field configured for the portal user type. This is the CRM field used to store the portal user's email address, to which portal invitations are sent.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the CRM field designated as the invitation field for sending portal invitations.
Maximum length: 255
idstringRequired within parentRepresents the unique numeric identifier of the invitation field in Zoho CRM.
Format: int64
Maximum length: 255
Portal User Types — response body — user type item personality module
FieldTypePresenceDescription and constraints
$objectRootRepresents the nested object identifying the personality module configured for the portal user type. The personality module is the CRM module (for example, Contacts) whose records serve as portal user identities.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the CRM module configured as the personality module for this portal user type.
Maximum length: 255
idstringRequired within parentRepresents the unique numeric identifier of the personality module in Zoho CRM.
Format: int64
Maximum length: 255
plural_labelstringRequired within parentRepresents the plural label of the module.
Maximum length: 255
Portal User Types — response body — user type item created by
FieldTypePresenceDescription and constraints
$objectRootRepresents nested object identifying the Zoho CRM user who created the portal user type, containing the user's unique identifier and display name.
Additional keys: not allowed
idstringRequired within parentRepresents the unique numeric identifier of the Zoho CRM user who created the portal user type.
Format: int64
Maximum length: 255
namestringRequired within parentRepresents the display name of the Zoho CRM user who created the portal user type.
Maximum length: 255
Portal User Types — response body — user type item modified by
FieldTypePresenceDescription and constraints
$objectRootRepresents the nested object identifying the Zoho CRM user who last modified the portal user type, containing the user's unique identifier and display name.
Additional keys: not allowed
idstringRequired within parentRepresents the unique numeric identifier of the Zoho CRM user who last modified the portal user type.
Format: int64
Maximum length: 255
namestringRequired within parentRepresents the display name of the Zoho CRM user who last modified the portal user type.
Maximum length: 255

SDK function policy ID: zoho.getportalusertypes. Catalog operation: getPortalUserTypes. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.