Standalone Functions - Zoho People
Standalone Functions in Zoho People are custom Deluge-based scripts designed to execute independently when triggered via API calls. These functions accept external parameters, enabling dynamic data processing and logic execution within Zoho People. By using a unique method name and custom input variables, Standalone Functions facilitate seamless integration between Zoho People and third-party systems, making them ideal for automating tasks, syncing data, or extending functionality beyond standard workflows.
Set Up Standalone Function in Zoho People
To set up standalone function in Zoho People:
- Navigate to Settings > Developer Space > Standalone Function.

- Click Add Standalone Function.

- Enter a name for the Standalone Function.
Click Edit Parameters, to define the Method Argument and its data type.
A maximum of 15 parameters can be configured.
Arguments are the values passed into a function or method when it's called, while data types specify the kind of data a variable or function argument can hold.
In the Method name, enter a unique method name for the Standalone Function.
When invoking a standalone function via an API call, Zoho People needs to precisely identify which method or action to execute. If multiple methods share the same name, it would lead to ambiguity and errors in function execution, as the system wouldn't be able to distinguish between the different methods.
- In the deluge section enter you standalone function Deluge code. For more information, refer to Deluge Script - Reference Guide.
- Click Save and Execute to run and test the function.
- Click Save to save the Standalone Function.
OAuth 2.0 Access
You can make Standalone Functions accessible through the OAuth 2.0 protocol, allowing other applications to connect with Zoho People without needing your username or password. With scopes to control what data can be accessed, OAuth 2.0 ensures that only specific, authorized actions are allowed. This makes it easy—and secure—to integrate Zoho People with third-party systems while keeping your data safe and your privacy intact.
To make a function available through the OAuth 2.0 method, you must first register your client with Zoho People. Please refer to
Steps to Generate OAuth Token.
Invoke Standalone Function via Zoho People API
Use the Zoho People API to invoke a standalone function from an external application or system. For API details, refer to Invoke Standalone Function API.
Use a POST request to call the standalone function.
The API endpoint for executing a standalone custom function is:
https://people.zoho.com/api/v3/function/(\w+)/execute
Replace (\w+) with the unique method name of the standalone function, which is available in the standalone function created in Zoho People.

In the request body:
Example body:
json
{
"arguments": {
"parameter1": "value1",
"parameter2": "value2"
}
}
Test Standalone Function in Postman
You can test the standalone function using Postman:
Open Postman and create a new request.
Connect to the standalone function’s REST API using the following details:
Request method: POST
Authorization: OAuth 2.0
Callback URL: https://oauth.pstmn.io/v1/callback
Auth URL: https://accounts.zoho.com/oauth/v2/auth
Access Token URL: https://accounts.zoho.com/oauth/v2/token
Scope: ZOHOPEOPLE.automation.ALL
Generated Client ID, Client Secret

Pass the arguments to the params property of the APIRequest object, and then execute the function using the POST method.
