DocsReferenceOrgAPI

Reference

OrgAPI

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

csharp
IOrgAPI       org       = ac.GetOrgInstance(orgId);
IWorkspaceAPI workspace = ac.GetWorkspaceInstance(orgId, workspaceId);
IViewAPI      view      = ac.GetViewInstance(orgId, workspaceId, viewId);
IBulkAPI      bulk      = ac.GetBulkInstance(orgId, workspaceId);

OrgAPI exposes 23 methods. Method names are PascalCase and identifiers are long.

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#

csharp
void ActivateUsers(List emailIds, Dictionary config)

Activate users in the specified organization.

ParameterDescription
emailIdsThe email address of the users to be activated.
configContains any additional control configurations. Can be null.

AddUsers#

csharp
void AddUsers(List emailIds, Dictionary config)

Add users to the specified organization.

ParameterDescription
emailIdsThe email address of the users to be added.
configContains any additional control configurations. Can be null.

ChangeUserRole#

csharp
void ChangeUserRole(List emailIds, string role, Dictionary config)

Change role for the specified users.

ParameterDescription
emailIdsThe email address of the users.
roleName of the role to be updated. Can be one of "USER"/"VIEWER"/"ORGADMIN".
configContains any additional control configurations. Can be null.

CreateCustomRole#

csharp
long CreateCustomRole(string roleName, string accessType, Dictionary permissions, Dictionary config)

Create a new custom role in the organization.

ParameterDescription
roleNameName of the custom role.
accessTypeAccess type for the custom role.
permissionsPermissions configuration for the custom role.
configContains any additional control configurations. Can be null.

Returns (long) — New custom role id.

CreateWorkspace#

csharp
long CreateWorkspace(string workspaceName, Dictionary config)

Create a blank workspace in the specified organization.

ParameterDescription
workspaceNameName of the workspace.
configContains any additional control configurations. Can be null.

Returns (long) — New workspace id.

DeactivateUsers#

csharp
void DeactivateUsers(List emailIds, Dictionary config)

Deactivate users in the specified organization.

ParameterDescription
emailIdsThe email address of the users to be deactivated.
configContains any additional control configurations. Can be null.

DeleteCustomRole#

csharp
void DeleteCustomRole(long roleId)

Delete the specified custom role from the organization.

ParameterDescription
roleIdId of the custom role to be deleted.

GetAdmins#

csharp
JsonElement GetAdmins()

Returns list of admins for a specified organization.

Returns (JsonElement) — Organization admins list.

GetAutomlAnalysis#

csharp
JsonElement GetAutomlAnalysis()

Returns all the AutoML analysis available in an organization.

Returns (JsonElement) — AutoML analysis list.

GetCustomRoles#

csharp
JsonElement GetCustomRoles()

Returns list of all custom roles available in the organization.

Returns (JsonElement) — Custom roles list.

GetLinkedWorkspaces#

csharp
JsonElement GetLinkedWorkspaces()

Returns list of linked workspaces available in the specified organization.

Returns (JsonElement) — Linked workspaces list.

GetMetaDetails#

csharp
JsonElement GetMetaDetails(string workspaceName, string viewName)

Returns details of the specified workspace/view.

ParameterDescription
workspaceNameThe name of the workspace.
viewNameThe name of the view.

Returns (JsonElement) — Workspace/view details.

GetOrgAccessRestrictions#

csharp
JsonElement GetOrgAccessRestrictions()

Returns the access restriction settings configured for the organization.

Returns (JsonElement) — Organization access restriction settings.

GetOrgDashboards#

csharp
JsonElement GetOrgDashboards(Dictionary 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.

ParameterDescription
configContains any additional control configurations. Can be null.

Returns (JsonElement) — Dashboards of the page along with the paging details.

GetOrgRecentItems#

csharp
JsonElement GetOrgRecentItems()

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

Returns (JsonElement) — Recent items list.

GetOrgWorkspaces#

csharp
JsonElement 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 (JsonElement) — Workspaces list.

GetResourceDetails#

csharp
JsonElement GetResourceDetails()

Returns resource usage details of the specified organization.

Returns (JsonElement) — Resource details.

GetSubscriptionDetails#

csharp
JsonElement GetSubscriptionDetails()

Returns subscription details of the specified organization.

Returns (JsonElement) — Subscription details.

GetUsers#

csharp
JsonElement GetUsers()

Returns list of users for the specified organization.

Returns (JsonElement) — List of users.

GetViewDetails#

csharp
JsonElement GetViewDetails(long viewId, Dictionary config)

Returns details of the specified view in the organization.

ParameterDescription
viewIdId of the view.
configContains any additional control configurations. Can be null.

Returns (JsonElement) — View details.

RemoveUsers#

csharp
void RemoveUsers(List emailIds, Dictionary config)

Remove users from the specified organization.

ParameterDescription
emailIdsThe email address of the users to be removed.
configContains any additional control configurations. Can be null.

UpdateCustomRole#

csharp
void UpdateCustomRole(long roleId, string roleName, string accessType, Dictionary permissions, Dictionary config)

Update the existing custom role in the organization.

ParameterDescription
roleIdId of the custom role to be updated.
roleNameNew name for the custom role.
accessTypeNew access type for the custom role.
permissionsNew permissions configuration for the custom role.
configContains any additional control configurations. Can be null.

UpdateOrgAccessRestrictions#

csharp
void UpdateOrgAccessRestrictions(Dictionary config)

Update the access restriction settings of the organization.

ParameterDescription
configContains the access restriction configurations to be updated.
  • Errors — the failure envelope and codes worth branching on.
  • Limits — throttles and quotas that apply to these calls.
Zoho Analytics C# SDK · REST API v2 Generated 2026-10-27