Reference
OrgAPI
Organization-scoped calls: users, roles, admins, subscription and resource usage, organization-wide workspace listings and organization-wide security controls. 23 methods.
$org = $ac->getOrgInstance($org_id);
$workspace = $ac->getWorkspaceInstance($org_id, $workspace_id);
$view = $ac->getViewInstance($org_id, $workspace_id, $view_id);
$bulk = $ac->getBulkInstance($org_id, $workspace_id);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($email_ids, $config = array()Activate users in the specified organization.
| Parameter | Type | Description |
|---|---|---|
email_ids | array() | The email address of the users to be activated. |
config | array() | Contains any additional control parameters. Can be null. |
Raises — IOException; ServerException; ParseException
addUsers#
addUsers($email_ids, $config = array()Add users to the specified organization.
| Parameter | Type | Description |
|---|---|---|
email_ids | array() | The email address of the users to be added. |
config | array() | Contains any additional control parameters. Can be null. |
Raises — IOException; ServerException; ParseException
changeUserRole#
changeUserRole($email_ids, $role, $config = array()Change role for the specified users.
| Parameter | Type | Description |
|---|---|---|
email_ids | array() | The email address of the users. |
role | string | New role for the users. |
config | array() | Contains any additional control parameters. Can be null. |
Raises — IOException; ServerException; ParseException
createCustomRole#
createCustomRole($role_name, $access_type, $permissions, $config = array()Create a new custom role in the specified organization.
| Parameter | Type | Description |
|---|---|---|
role_name | string | Name of the custom role to be created. |
access_type | string | Access type for the custom role. |
permissions | array | Contains the permission details for the custom role. |
config | array | Optional control parameters. |
Returns — Created custom role id.
createWorkspace#
createWorkspace($workspace_name, $config = array()Returns a new BulkAPI instance.
| Parameter | Type | Description |
|---|---|---|
workspace_name | string | Name of the workspace. |
config | array() | Contains any additional control parameters. Can be null. |
Returns — Created workspace id.
Raises — IOException; ServerException; ParseException
deactivateUsers#
deactivateUsers($email_ids, $config = array()Deactivate users in the specified organization.
| Parameter | Type | Description |
|---|---|---|
email_ids | array() | The email address of the users to be deactivated. |
config | array() | Contains any additional control parameters. Can be null. |
Raises — IOException; ServerException; ParseException
deleteCustomRole#
deleteCustomRole($role_id)Delete the specified custom role from the organization.
| Parameter | Type | Description |
|---|---|---|
role_id | string | Id of the custom role. |
getAdmins#
getAdmins()Returns list of admins for a specified organization.
Returns — Organization admin list.
Raises — IOException; ServerException; ParseException
getAutoMLAnalysis#
getAutoMLAnalysis()Returns all AutoML analysis available in an organization.
Returns — List of AutoML analysis.
Raises — IOException; ServerException; ParseException
getCustomRoles#
getCustomRoles()Returns list of custom roles for the specified organization.
Returns — Custom role list.
Raises — IOException; ServerException; ParseException
getLinkedWorkspaces#
getLinkedWorkspaces()Returns list of linked workspaces available in the specified organization.
Returns — Linked workspaces list.
Raises — IOException; ServerException; ParseException
getMetaDetails#
getMetaDetails($workspace_name, $view_name)Returns details of the specified workspace/view.
| Parameter | Type | Description |
|---|---|---|
workspace_name | string | Name of the workspace. |
view_name | string | Name of the view. |
Returns — Workspace (or) View meta details.
Raises — IOException; ServerException; ParseException
getOrgAccessRestrictions#
getOrgAccessRestrictions()Returns the access restriction settings configured for the organization.
Returns — Organization access restriction settings.
Raises — IOException; ServerException; ParseException
getOrgDashboards#
getOrgDashboards($config = array()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 | array() | Contains any additional control parameters. Can be null. |
Returns — Dashboards of the page along with the paging details.
Raises — IOException; ServerException; ParseException
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 — IOException; ServerException; ParseException
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 — IOException; ServerException; ParseException
getResourceDetails#
getResourceDetails()Returns resource usage details of the specified organization.
Returns — Resource details.
Raises — IOException; ServerException; ParseException
getSubscriptionDetails#
getSubscriptionDetails()Returns subscription details of the specified organization.
Returns — Subscription details.
Raises — IOException; ServerException; ParseException
getUsers#
getUsers()Returns list of users for the specified organization.
Returns — User list.
Raises — IOException; ServerException; ParseException
getViewDetails#
getViewDetails($view_id, $config = array()Returns details of the specified view in the organization.
| Parameter | Type | Description |
|---|---|---|
view_id | string | The ID of the view. |
config | array() | Contains any additional control parameters. Can be null. |
Returns — View details.
Raises — IOException; ServerException; ParseException
removeUsers#
removeUsers($email_ids, $config = array()Remove users from the specified organization.
| Parameter | Type | Description |
|---|---|---|
email_ids | array() | The email address of the users to be removed. |
config | array() | Contains any additional control parameters. Can be null. |
Raises — IOException; ServerException; ParseException
updateCustomRole#
updateCustomRole($role_id, $role_name, $access_type, $permissions, $config = array()Update the specified custom role in the organization.
| Parameter | Type | Description |
|---|---|---|
role_id | string | Id of the custom role. |
role_name | string | New name for the custom role. |
access_type | string | Access type for the custom role. |
permissions | array | Contains the permission details for the custom role. |
config | array | Optional control parameters. |
updateOrgAccessRestrictions#
updateOrgAccessRestrictions($config = array()Update the access restriction settings of the organization.
| Parameter | Type | Description |
|---|---|---|
config | array() | Contains the access restriction configurations to be updated. |
Raises — IOException; ServerException; ParseException