Reference
OrgAPI
Organization-scoped calls: users, roles, admins, subscription and resource usage, organization-wide workspace listings and organization-wide security controls. 23 methods.
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#
void ActivateUsers(List emailIds, Dictionary config)Activate users in the specified organization.
| Parameter | Description |
|---|---|
emailIds | The email address of the users to be activated. |
config | Contains any additional control configurations. Can be null. |
AddUsers#
void AddUsers(List emailIds, Dictionary config)Add users to the specified organization.
| Parameter | Description |
|---|---|
emailIds | The email address of the users to be added. |
config | Contains any additional control configurations. Can be null. |
ChangeUserRole#
void ChangeUserRole(List emailIds, string role, Dictionary config)Change role for the specified users.
| Parameter | Description |
|---|---|
emailIds | The email address of the users. |
role | Name of the role to be updated. Can be one of "USER"/"VIEWER"/"ORGADMIN". |
config | Contains any additional control configurations. Can be null. |
CreateCustomRole#
long CreateCustomRole(string roleName, string accessType, Dictionary permissions, Dictionary config)Create a new custom role in the organization.
| Parameter | Description |
|---|---|
roleName | Name of the custom role. |
accessType | Access type for the custom role. |
permissions | Permissions configuration for the custom role. |
config | Contains any additional control configurations. Can be null. |
Returns (long) — New custom role id.
CreateWorkspace#
long CreateWorkspace(string workspaceName, Dictionary config)Create a blank workspace in the specified organization.
| Parameter | Description |
|---|---|
workspaceName | Name of the workspace. |
config | Contains any additional control configurations. Can be null. |
Returns (long) — New workspace id.
DeactivateUsers#
void DeactivateUsers(List emailIds, Dictionary config)Deactivate users in the specified organization.
| Parameter | Description |
|---|---|
emailIds | The email address of the users to be deactivated. |
config | Contains any additional control configurations. Can be null. |
DeleteCustomRole#
void DeleteCustomRole(long roleId)Delete the specified custom role from the organization.
| Parameter | Description |
|---|---|
roleId | Id of the custom role to be deleted. |
GetAdmins#
JsonElement GetAdmins()Returns list of admins for a specified organization.
Returns (JsonElement) — Organization admins list.
GetAutomlAnalysis#
JsonElement GetAutomlAnalysis()Returns all the AutoML analysis available in an organization.
Returns (JsonElement) — AutoML analysis list.
GetCustomRoles#
JsonElement GetCustomRoles()Returns list of all custom roles available in the organization.
Returns (JsonElement) — Custom roles list.
GetLinkedWorkspaces#
JsonElement GetLinkedWorkspaces()Returns list of linked workspaces available in the specified organization.
Returns (JsonElement) — Linked workspaces list.
GetMetaDetails#
JsonElement GetMetaDetails(string workspaceName, string viewName)Returns details of the specified workspace/view.
| Parameter | Description |
|---|---|
workspaceName | The name of the workspace. |
viewName | The name of the view. |
Returns (JsonElement) — Workspace/view details.
GetOrgAccessRestrictions#
JsonElement GetOrgAccessRestrictions()Returns the access restriction settings configured for the organization.
Returns (JsonElement) — Organization access restriction settings.
GetOrgDashboards#
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.
| Parameter | Description |
|---|---|
config | Contains any additional control configurations. Can be null. |
Returns (JsonElement) — Dashboards of the page along with the paging details.
GetOrgRecentItems#
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#
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#
JsonElement GetResourceDetails()Returns resource usage details of the specified organization.
Returns (JsonElement) — Resource details.
GetSubscriptionDetails#
JsonElement GetSubscriptionDetails()Returns subscription details of the specified organization.
Returns (JsonElement) — Subscription details.
GetUsers#
JsonElement GetUsers()Returns list of users for the specified organization.
Returns (JsonElement) — List of users.
GetViewDetails#
JsonElement GetViewDetails(long viewId, Dictionary config)Returns details of the specified view in the organization.
| Parameter | Description |
|---|---|
viewId | Id of the view. |
config | Contains any additional control configurations. Can be null. |
Returns (JsonElement) — View details.
RemoveUsers#
void RemoveUsers(List emailIds, Dictionary config)Remove users from the specified organization.
| Parameter | Description |
|---|---|
emailIds | The email address of the users to be removed. |
config | Contains any additional control configurations. Can be null. |
UpdateCustomRole#
void UpdateCustomRole(long roleId, string roleName, string accessType, Dictionary permissions, Dictionary config)Update the existing custom role in the organization.
| Parameter | Description |
|---|---|
roleId | Id of the custom role to be updated. |
roleName | New name for the custom role. |
accessType | New access type for the custom role. |
permissions | New permissions configuration for the custom role. |
config | Contains any additional control configurations. Can be null. |
UpdateOrgAccessRestrictions#
void UpdateOrgAccessRestrictions(Dictionary config)Update the access restriction settings of the organization.
| Parameter | Description |
|---|---|
config | Contains the access restriction configurations to be updated. |