DocsReferenceOrgAPI

Reference

OrgAPI

Organization-scoped calls: users, roles, admins, subscription and resource usage, organization-wide workspace listings and organization-wide security controls. 23 methods.

php
$org       = $ac->getOrgInstance($org_id);
$workspace = $ac->getWorkspaceInstance($org_id, $workspace_id);
$view      = $ac->getViewInstance($org_id, $workspace_id, $view_id);
$bulk      = $ac->getBulkInstance($org_id, $workspace_id);

OrgAPI exposes 23 methods. Method names are camelCase and identifiers are string.

Methods#

activateUsers, addUsers, changeUserRole, createCustomRole, createWorkspace, deactivateUsers, deleteCustomRole, getAdmins, getAutoMLAnalysis, getCustomRoles, getLinkedWorkspaces, getMetaDetails, getOrgAccessRestrictions, getOrgDashboards, getOrgRecentItems, getOrgWorkspaces, getResourceDetails, getSubscriptionDetails, getUsers, getViewDetails, removeUsers, updateCustomRole, updateOrgAccessRestrictions

activateUsers#

php
activateUsers($email_ids, $config = array()

Activate users in the specified organization.

ParameterTypeDescription
email_idsarray()The email address of the users to be activated.
configarray()Contains any additional control parameters. Can be null.

Raises — IOException; ServerException; ParseException

addUsers#

php
addUsers($email_ids, $config = array()

Add users to the specified organization.

ParameterTypeDescription
email_idsarray()The email address of the users to be added.
configarray()Contains any additional control parameters. Can be null.

Raises — IOException; ServerException; ParseException

changeUserRole#

php
changeUserRole($email_ids, $role, $config = array()

Change role for the specified users.

ParameterTypeDescription
email_idsarray()The email address of the users.
rolestringNew role for the users.
configarray()Contains any additional control parameters. Can be null.

Raises — IOException; ServerException; ParseException

createCustomRole#

php
createCustomRole($role_name, $access_type, $permissions, $config = array()

Create a new custom role in the specified organization.

ParameterTypeDescription
role_namestringName of the custom role to be created.
access_typestringAccess type for the custom role.
permissionsarrayContains the permission details for the custom role.
configarrayOptional control parameters.

Returns — Created custom role id.

createWorkspace#

php
createWorkspace($workspace_name, $config = array()

Returns a new BulkAPI instance.

ParameterTypeDescription
workspace_namestringName of the workspace.
configarray()Contains any additional control parameters. Can be null.

Returns — Created workspace id.

Raises — IOException; ServerException; ParseException

deactivateUsers#

php
deactivateUsers($email_ids, $config = array()

Deactivate users in the specified organization.

ParameterTypeDescription
email_idsarray()The email address of the users to be deactivated.
configarray()Contains any additional control parameters. Can be null.

Raises — IOException; ServerException; ParseException

deleteCustomRole#

php
deleteCustomRole($role_id)

Delete the specified custom role from the organization.

ParameterTypeDescription
role_idstringId of the custom role.

getAdmins#

php
getAdmins()

Returns list of admins for a specified organization.

Returns — Organization admin list.

Raises — IOException; ServerException; ParseException

getAutoMLAnalysis#

php
getAutoMLAnalysis()

Returns all AutoML analysis available in an organization.

Returns — List of AutoML analysis.

Raises — IOException; ServerException; ParseException

getCustomRoles#

php
getCustomRoles()

Returns list of custom roles for the specified organization.

Returns — Custom role list.

Raises — IOException; ServerException; ParseException

getLinkedWorkspaces#

php
getLinkedWorkspaces()

Returns list of linked workspaces available in the specified organization.

Returns — Linked workspaces list.

Raises — IOException; ServerException; ParseException

getMetaDetails#

php
getMetaDetails($workspace_name, $view_name)

Returns details of the specified workspace/view.

ParameterTypeDescription
workspace_namestringName of the workspace.
view_namestringName of the view.

Returns — Workspace (or) View meta details.

Raises — IOException; ServerException; ParseException

getOrgAccessRestrictions#

php
getOrgAccessRestrictions()

Returns the access restriction settings configured for the organization.

Returns — Organization access restriction settings.

Raises — IOException; ServerException; ParseException

getOrgDashboards#

php
getOrgDashboards($config = array()

Returns the dashboards of the specified organization that the authenticated user may read, across the workspaces the user can reach or across the workspaces named in workspaceIds.

ParameterTypeDescription
configarray()Contains any additional control parameters. Can be null.

Returns — Dashboards of the page along with the paging details.

Raises — IOException; ServerException; ParseException

getOrgRecentItems#

php
getOrgRecentItems()

Returns the views the authenticated user opened most recently in the specified organization, newest first. At most 20 items are returned.

Returns — View list.

Raises — IOException; ServerException; ParseException

getOrgWorkspaces#

php
getOrgWorkspaces()

Returns the workspaces of the specified organization that the authenticated user can reach. An Account Admin and an Organization Admin receive every active workspace of the organization, every other user receives only the workspaces shared with them.

Returns — Workspace list.

Raises — IOException; ServerException; ParseException

getResourceDetails#

php
getResourceDetails()

Returns resource usage details of the specified organization.

Returns — Resource details.

Raises — IOException; ServerException; ParseException

getSubscriptionDetails#

php
getSubscriptionDetails()

Returns subscription details of the specified organization.

Returns — Subscription details.

Raises — IOException; ServerException; ParseException

getUsers#

php
getUsers()

Returns list of users for the specified organization.

Returns — User list.

Raises — IOException; ServerException; ParseException

getViewDetails#

php
getViewDetails($view_id, $config = array()

Returns details of the specified view in the organization.

ParameterTypeDescription
view_idstringThe ID of the view.
configarray()Contains any additional control parameters. Can be null.

Returns — View details.

Raises — IOException; ServerException; ParseException

removeUsers#

php
removeUsers($email_ids, $config = array()

Remove users from the specified organization.

ParameterTypeDescription
email_idsarray()The email address of the users to be removed.
configarray()Contains any additional control parameters. Can be null.

Raises — IOException; ServerException; ParseException

updateCustomRole#

php
updateCustomRole($role_id, $role_name, $access_type, $permissions, $config = array()

Update the specified custom role in the organization.

ParameterTypeDescription
role_idstringId of the custom role.
role_namestringNew name for the custom role.
access_typestringAccess type for the custom role.
permissionsarrayContains the permission details for the custom role.
configarrayOptional control parameters.

updateOrgAccessRestrictions#

php
updateOrgAccessRestrictions($config = array()

Update the access restriction settings of the organization.

ParameterTypeDescription
configarray()Contains the access restriction configurations to be updated.

Raises — IOException; ServerException; ParseException

  • Errors — the failure envelope and codes worth branching on.
  • Limits — throttles and quotas that apply to these calls.
Zoho Analytics PHP SDK · REST API v2 Generated 2026-10-27