DocsReferenceOrgAPI

Reference

OrgAPI

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

go
org       := ZAnalytics.GetOrgInstance(&ac, orgId)
workspace := ZAnalytics.GetWorkspaceInstance(&ac, orgId, workspaceId)
view      := ZAnalytics.GetViewInstance(&ac, orgId, workspaceId, viewId)
bulk      := ZAnalytics.GetBulkInstance(&ac, orgId, workspaceId)

OrgAPI exposes 23 methods. Method names are PascalCase (exported) 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#

go
ActivateUsers(emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Activate users in the specified organization.

ParameterDescription
emailidsThe email address of the users to be activated.
configContains any additional control configurations.

AddUsers#

go
AddUsers(emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Add users to the specified organization.

ParameterDescription
emailidsThe email address of the users to be added.
configContains any additional control configurations.

ChangeUserRole#

go
ChangeUserRole(emailids interface{}, role string, config map[string]interface{}) (serverexception *ServerException)

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.

CreateCustomRole#

go
CreateCustomRole(rolename, accesstype string, permissions map[string]interface{}, config map[string]interface{}) (roleid string, serverexception *ServerException)

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.

Returns — Returns the new custom role id.

CreateWorkspace#

go
CreateWorkspace(workspacename string, config map[string]interface{}) (workspaceid string, serverexception *ServerException)

Create a blank workspace in the specified organization.

ParameterDescription
workspacenameName of the workspace to be created.
configContains any additional control configurations.

Returns — Returns the new workspace id.

DeactivateUsers#

go
DeactivateUsers(emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Deactivate users in the specified organization.

ParameterDescription
emailidsThe email address of the users to be deactivated.
configContains any additional control configurations.

DeleteCustomRole#

go
DeleteCustomRole(roleid string) (serverexception *ServerException)

Delete the specified custom role from the organization.

ParameterDescription
roleidId of the custom role to be deleted.

GetAdmins#

go
GetAdmins() (orgadmins interface{}, serverexception *ServerException)

Returns list of admins for a specified organization.

Returns — Returns orgadmin list as interface.

GetAutoMLAnalysis#

go
GetAutoMLAnalysis() (analysis interface{}, serverexception *ServerException)

Returns list of automl analysis for the specified organization.

Returns — Returns AutoML analysis list as interface.

GetCustomRoles#

go
GetCustomRoles() (roles interface{}, serverexception *ServerException)

Returns list of all custom roles available in the organization.

Returns — Returns custom role list as interface.

GetLinkedWorkspaces#

go
GetLinkedWorkspaces() (linkedworkspaces interface{}, serverexception *ServerException)

Returns list of linked workspaces available in the specified organization.

Returns — Returns the linked workspaces list as interface.

GetMetaDetails#

go
GetMetaDetails(workspacename, viewname string) (metadetails interface{}, serverexception *ServerException)

Returns details of the specified workspace/view.

ParameterDescription
workspacenameThe name of the workspace.
viewnameThe name of the view.

Returns — Returns details as interface.

GetOrgAccessRestrictions#

go
GetOrgAccessRestrictions() (accessrestrictions interface{}, serverexception *ServerException)

Returns the access restriction settings configured for the organization.

Returns — Returns the organization access restriction settings as interface.

GetOrgDashboards#

go
GetOrgDashboards(config map[string]interface{}) (dashboards map[string]interface{}, serverexception *ServerException)

Returns the dashboards of the specified organization that the authenticated user may read,

ParameterDescription
configContains any additional control configurations.

Returns — Returns the dashboards of the page along with the paging details as map.

GetOrgRecentItems#

go
GetOrgRecentItems() (views interface{}, serverexception *ServerException)

Returns the views the authenticated user opened most recently in the specified organization,

Returns — Returns view list as interface.

GetOrgWorkspaces#

go
GetOrgWorkspaces() (workspaces interface{}, serverexception *ServerException)

Returns the workspaces of the specified organization that the authenticated user can reach.

Returns — Returns workspace list as interface.

GetResourceDetails#

go
GetResourceDetails() (resourceinfo interface{}, serverexception *ServerException)

Returns resource usage details of the specified organization.

Returns — Returns details as interface.

GetSubscriptionDetails#

go
GetSubscriptionDetails() (subscriptioninfo interface{}, serverexception *ServerException)

Returns subscription details of the specified organization.

Returns — Returns details as interface.

GetUsers#

go
GetUsers() (users interface{}, serverexception *ServerException)

Returns list of users for the specified organization.

Returns — Returns user list as interface.

GetViewDetails#

go
GetViewDetails(viewid string, config map[string]interface{}) (viewDetails map[string]interface{}, serverexception *ServerException)

Returns details of the specified view in the organization.

ParameterDescription
viewidThe ID of the view.
configContains the control configurations.

Returns — Returns the view details as interface.

RemoveUsers#

go
RemoveUsers(emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Remove users from the specified organization.

ParameterDescription
emailidsThe email address of the users to be removed.
configContains any additional control configurations.

UpdateCustomRole#

go
UpdateCustomRole(roleid, rolename, accesstype string, permissions map[string]interface{}, config map[string]interface{}) (serverexception *ServerException)

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.

UpdateOrgAccessRestrictions#

go
UpdateOrgAccessRestrictions(config map[string]interface{}) (serverexception *ServerException)

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 Go SDK · REST API v2 Generated 2026-10-27