DocsReferenceOrgAPI

Reference

OrgAPI

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

javascript
var org       = ac.getOrgInstance(orgId);
var workspace = ac.getWorkspaceInstance(orgId, workspaceId);
var view      = ac.getViewInstance(orgId, workspaceId, viewId);
var bulk      = ac.getBulkInstance(orgId, workspaceId);

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#

javascript
activateUsers(emailIds, config={})

Activate users in the specified organization.

ParameterTypeDescription
emailIdsJSONArrayThe email address of the users to be activated.
configObjectContains any additional control attributes.

Raises — Error

addUsers#

javascript
addUsers(emailIds, config={})

Add users to the specified organization.

ParameterTypeDescription
emailIdsJSONArrayThe email address of the users to be added.
configObjectContains any additional control attributes.

Raises — Error

changeUserRole#

javascript
changeUserRole(emailIds, role, config={})

Change role for the specified users.

ParameterTypeDescription
emailIdsJSONArrayThe email address of the users.
roleStringNew role for the users.
configObjectContains any additional control attributes.

Raises — Error

createCustomRole#

javascript
createCustomRole(roleName, accessType, permissions, config={})

Create a new custom role in the organization.

ParameterTypeDescription
roleNameStringName of the custom role to be created.
accessTypeStringAccess type for the custom role.
permissionsObjectPermissions configuration for the custom role.
configObjectContains any additional control attributes.

Returns — Created custom role id.

Raises — Error

createWorkspace#

javascript
createWorkspace(workspaceName, config={})

Create a blank workspace in the specified organization.

ParameterTypeDescription
workspaceNameStringName of the workspace.
configObjectContains any additional control attributes.

Returns — Created workspace id.

Raises — Error

deActivateUsers#

javascript
deActivateUsers(emailIds, config={})

Deactivate users in the specified organization.

ParameterTypeDescription
emailIdsJSONArrayThe email address of the users to be deactivated.
configObjectContains any additional control attributes.

Raises — Error

deleteCustomRole#

javascript
deleteCustomRole(roleId)

Delete the specified custom role from the organization.

ParameterTypeDescription
roleIdStringId of the custom role to be deleted.

Raises — Error

getAdmins#

javascript
getAdmins(config={})

Returns list of admins for a specified organization.

ParameterTypeDescription
configObjectContains any additional control attributes.

Returns — Organization admin list.

Raises — Error

getAutomlAnalysis#

javascript
getAutomlAnalysis()

Returns all the automl analysis available in an organization.

Returns — AutoML analysis list.

Raises — Error

getCustomRoles#

javascript
getCustomRoles()

Returns list of all custom roles available in the organization.

Returns — Custom roles list.

Raises — Error

getLinkedWorkspaces#

javascript
getLinkedWorkspaces()

Returns list of linked workspaces available in the specified organization.

Returns — Linked workspaces list.

Raises — Error

getMetaDetails#

javascript
getMetaDetails(workspaceName, viewName=null, config={})

Returns details of the specified workspace/view.

ParameterTypeDescription
workspaceNameStringName of the workspace.
viewNameStringName of the view. Can be null.
configObjectContains any additional control attributes.

Returns — Workspace (or) View meta details.

Raises — Error

getOrgAccessRestrictions#

javascript
getOrgAccessRestrictions()

Returns the access restriction settings configured for the organization.

Returns — Organization access restriction settings.

Raises — Error

getOrgDashboards#

javascript
getOrgDashboards(config={})

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
configObjectContains any additional control attributes.

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

Raises — Error

getOrgRecentItems#

javascript
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 — Error

getOrgWorkspaces#

javascript
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 — Error

getResourceDetails#

javascript
getResourceDetails()

Returns resource usage details of the specified organization.

Returns — Resource details.

Raises — Error

getSubscriptionDetails#

javascript
getSubscriptionDetails()

Returns subscription details of the specified organization.

Returns — Subscription details.

Raises — Error

getUsers#

javascript
getUsers()

Returns list of users for the specified organization.

Returns — User list.

Raises — Error

getViewDetails#

javascript
getViewDetails(viewId, config={})

Returns details of the specified view in the organization.

ParameterTypeDescription
viewIdStringThe ID of the view.
configObjectContains any additional control attributes.

Returns — View details.

Raises — Error

removeUsers#

javascript
removeUsers(emailIds, config={})

Remove users from the specified organization.

ParameterTypeDescription
emailIdsJSONArrayThe email address of the users to be removed.
configObjectContains any additional control attributes.

Raises — Error

updateCustomRole#

javascript
updateCustomRole(roleId, roleName, accessType, permissions, config={})

Update the existing custom role in the organization.

ParameterTypeDescription
roleIdStringId of the custom role to be updated.
roleNameStringNew name for the custom role.
accessTypeStringNew access type for the custom role.
permissionsObjectNew permissions configuration for the custom role.
configObjectContains any additional control attributes.

Raises — Error

updateOrgAccessRestrictions#

javascript
updateOrgAccessRestrictions(config={})

Update the access restriction settings of the organization.

ParameterTypeDescription
configObjectContains the access restriction configurations to be updated.

Raises — Error

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