Class OrgAPI
OrgAPI contains organization level operations.
Inherited Members
Namespace: ZohoAnalytics
Assembly: ZohoAnalytics.dll
Syntax
public class OrgAPI
Methods
ActivateUsers(List<string>, Dictionary<string, object>)
Activate users in the specified organization.
Declaration
public void ActivateUsers(List<string> emailIds, Dictionary<string, object> config)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | emailIds | The email address of the users to be activated. |
| Dictionary<string, object> | config | Contains any additional control configurations. Can be null. |
AddUsers(List<string>, Dictionary<string, object>)
Add users to the specified organization.
Declaration
public void AddUsers(List<string> emailIds, Dictionary<string, object> config)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | emailIds | The email address of the users to be added. |
| Dictionary<string, object> | config | Contains any additional control configurations. Can be null. |
ChangeUserRole(List<string>, string, Dictionary<string, object>)
Change role for the specified users.
Declaration
public void ChangeUserRole(List<string> emailIds, string role, Dictionary<string, object> config)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | emailIds | The email address of the users. |
| string | role | Name of the role to be updated. Can be one of "USER"/"VIEWER"/"ORGADMIN". |
| Dictionary<string, object> | config | Contains any additional control configurations. Can be null. |
CreateWorkspace(string, Dictionary<string, object>)
Create a blank workspace in the specified organization.
Declaration
public long CreateWorkspace(string workspaceName, Dictionary<string, object> config)
Parameters
| Type | Name | Description |
|---|---|---|
| string | workspaceName | Name of the workspace. |
| Dictionary<string, object> | config | Contains any additional control configurations. Can be null. |
Returns
| Type | Description |
|---|---|
| long | New workspace id. |
DeactivateUsers(List<string>, Dictionary<string, object>)
Deactivate users in the specified organization.
Declaration
public void DeactivateUsers(List<string> emailIds, Dictionary<string, object> config)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | emailIds | The email address of the users to be deactivated. |
| Dictionary<string, object> | config | Contains any additional control configurations. Can be null. |
GetAdmins()
Returns list of admins for a specified organization.
Declaration
public JsonElement GetAdmins()
Returns
| Type | Description |
|---|---|
| JsonElement | Organization admins list. |
GetAutomlAnalysis()
Returns all the AutoML analysis available in an organization.
Declaration
public JsonElement GetAutomlAnalysis()
Returns
| Type | Description |
|---|---|
| JsonElement | AutoML analysis list. |
GetMetaDetails(string, string)
Returns details of the specified workspace/view.
Declaration
public JsonElement GetMetaDetails(string workspaceName, string viewName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | workspaceName | The name of the workspace. |
| string | viewName | The name of the view. |
Returns
| Type | Description |
|---|---|
| JsonElement | Workspace/view details. |
GetResourceDetails()
Returns resource usage details of the specified organization.
Declaration
public JsonElement GetResourceDetails()
Returns
| Type | Description |
|---|---|
| JsonElement | Resource details. |
GetSubscriptionDetails()
Returns subscription details of the specified organization.
Declaration
public JsonElement GetSubscriptionDetails()
Returns
| Type | Description |
|---|---|
| JsonElement | Subscription details. |
GetUsers()
Returns list of users for the specified organization.
Declaration
public JsonElement GetUsers()
Returns
| Type | Description |
|---|---|
| JsonElement | List of users. |
RemoveUsers(List<string>, Dictionary<string, object>)
Remove users from the specified organization.
Declaration
public void RemoveUsers(List<string> emailIds, Dictionary<string, object> config)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | emailIds | The email address of the users to be removed. |
| Dictionary<string, object> | config | Contains any additional control configurations. Can be null. |