Reference
OrgAPI
Organization-scoped calls: users, roles, admins, subscription and resource usage, organization-wide workspace listings and organization-wide security controls. 23 methods.
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#
activateUsers(emailIds, config={})Activate users in the specified organization.
| Parameter | Type | Description |
|---|---|---|
emailIds | JSONArray | The email address of the users to be activated. |
config | Object | Contains any additional control attributes. |
Raises — Error
addUsers#
addUsers(emailIds, config={})Add users to the specified organization.
| Parameter | Type | Description |
|---|---|---|
emailIds | JSONArray | The email address of the users to be added. |
config | Object | Contains any additional control attributes. |
Raises — Error
changeUserRole#
changeUserRole(emailIds, role, config={})Change role for the specified users.
| Parameter | Type | Description |
|---|---|---|
emailIds | JSONArray | The email address of the users. |
role | String | New role for the users. |
config | Object | Contains any additional control attributes. |
Raises — Error
createCustomRole#
createCustomRole(roleName, accessType, permissions, config={})Create a new custom role in the organization.
| Parameter | Type | Description |
|---|---|---|
roleName | String | Name of the custom role to be created. |
accessType | String | Access type for the custom role. |
permissions | Object | Permissions configuration for the custom role. |
config | Object | Contains any additional control attributes. |
Returns — Created custom role id.
Raises — Error
createWorkspace#
createWorkspace(workspaceName, config={})Create a blank workspace in the specified organization.
| Parameter | Type | Description |
|---|---|---|
workspaceName | String | Name of the workspace. |
config | Object | Contains any additional control attributes. |
Returns — Created workspace id.
Raises — Error
deActivateUsers#
deActivateUsers(emailIds, config={})Deactivate users in the specified organization.
| Parameter | Type | Description |
|---|---|---|
emailIds | JSONArray | The email address of the users to be deactivated. |
config | Object | Contains any additional control attributes. |
Raises — Error
deleteCustomRole#
deleteCustomRole(roleId)Delete the specified custom role from the organization.
| Parameter | Type | Description |
|---|---|---|
roleId | String | Id of the custom role to be deleted. |
Raises — Error
getAdmins#
getAdmins(config={})Returns list of admins for a specified organization.
| Parameter | Type | Description |
|---|---|---|
config | Object | Contains any additional control attributes. |
Returns — Organization admin list.
Raises — Error
getAutomlAnalysis#
getAutomlAnalysis()Returns all the automl analysis available in an organization.
Returns — AutoML analysis list.
Raises — Error
getCustomRoles#
getCustomRoles()Returns list of all custom roles available in the organization.
Returns — Custom roles list.
Raises — Error
getLinkedWorkspaces#
getLinkedWorkspaces()Returns list of linked workspaces available in the specified organization.
Returns — Linked workspaces list.
Raises — Error
getMetaDetails#
getMetaDetails(workspaceName, viewName=null, config={})Returns details of the specified workspace/view.
| Parameter | Type | Description |
|---|---|---|
workspaceName | String | Name of the workspace. |
viewName | String | Name of the view. Can be null. |
config | Object | Contains any additional control attributes. |
Returns — Workspace (or) View meta details.
Raises — Error
getOrgAccessRestrictions#
getOrgAccessRestrictions()Returns the access restriction settings configured for the organization.
Returns — Organization access restriction settings.
Raises — Error
getOrgDashboards#
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.
| Parameter | Type | Description |
|---|---|---|
config | Object | Contains any additional control attributes. |
Returns — Dashboards of the page along with the paging details.
Raises — Error
getOrgRecentItems#
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#
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#
getResourceDetails()Returns resource usage details of the specified organization.
Returns — Resource details.
Raises — Error
getSubscriptionDetails#
getSubscriptionDetails()Returns subscription details of the specified organization.
Returns — Subscription details.
Raises — Error
getUsers#
getUsers()Returns list of users for the specified organization.
Returns — User list.
Raises — Error
getViewDetails#
getViewDetails(viewId, config={})Returns details of the specified view in the organization.
| Parameter | Type | Description |
|---|---|---|
viewId | String | The ID of the view. |
config | Object | Contains any additional control attributes. |
Returns — View details.
Raises — Error
removeUsers#
removeUsers(emailIds, config={})Remove users from the specified organization.
| Parameter | Type | Description |
|---|---|---|
emailIds | JSONArray | The email address of the users to be removed. |
config | Object | Contains any additional control attributes. |
Raises — Error
updateCustomRole#
updateCustomRole(roleId, roleName, accessType, permissions, config={})Update the existing custom role in the organization.
| Parameter | Type | Description |
|---|---|---|
roleId | String | Id of the custom role to be updated. |
roleName | String | New name for the custom role. |
accessType | String | New access type for the custom role. |
permissions | Object | New permissions configuration for the custom role. |
config | Object | Contains any additional control attributes. |
Raises — Error
updateOrgAccessRestrictions#
updateOrgAccessRestrictions(config={})Update the access restriction settings of the organization.
| Parameter | Type | Description |
|---|---|---|
config | Object | Contains the access restriction configurations to be updated. |
Raises — Error