BetterCloud

App · 7 actions

Run BetterCloud actions and workflows, such as onboarding and offboarding, and report on your SaaS users, groups and files.

Actions

ActionWhat it does
Get API tokenCheck the connection's API token and see its name and tenant.
Get workflowGet the inputs a workflow takes when you run it.
List actionsList the actions BetterCloud can run, such as suspending a user, with each one's parameter IDs.
List workflowsList your BetterCloud workflows' names and IDs.
Run actionStart one of BetterCloud's actions, such as suspending a user in Okta.
Run report querySearch BetterCloud's data about your users, groups and files with a GraphQL query, as in its Reporting explorer.
Run workflowStart a BetterCloud workflow, such as offboarding a user.

Get API token

Check the connection's API token and see its name and tenant.

Inputs

None.

Outputs

dataobject
The response from BetterCloud.
Example output
{
  "data": {
    "createdAt": 1,
    "createdBy": "example",
    "description": "example",
    "id": "example",
    "lastUsedAt": 1,
    "name": "example",
    "tenantId": "example"
  }
}

Get workflow

Get the inputs a workflow takes when you run it.

Inputs

WorkflowworkflowIdtextRequired
The workflow.

Outputs

dataobject
The response from BetterCloud.
Example output
{
  "data": {
    "integrationId": "example",
    "parameters": [
      {
        "key": "example"
      }
    ],
    "providerId": "example"
  }
}

List actions

List the actions BetterCloud can run, such as suspending a user, with each one's parameter IDs.

Inputs

Pagepagenumber
The page to read, starting at 0.At least 0.
Page sizesizenumber
How many actions a page holds.From 1 to 1000.

Outputs

dataobject
The response from BetterCloud.
Example output
{
  "data": {
    "content": [
      {
        "description": "example",
        "id": "example",
        "name": "example",
        "parameters": [
          {
            "id": "example",
            "name": "example",
            "required": true,
            "type": "example"
          }
        ]
      }
    ],
    "first": true,
    "last": true,
    "number": 1,
    "numberOfElements": 1,
    "size": 1,
    "totalElements": 1,
    "totalPages": 1
  }
}

List workflows

List your BetterCloud workflows' names and IDs.

Inputs

None.

Outputs

dataobject
The response from BetterCloud.
Example output
{
  "data": {
    "content": [
      {
        "name": "example",
        "workflowId": "example"
      }
    ],
    "first": true,
    "last": true,
    "number": 1,
    "numberOfElements": 1,
    "size": 1,
    "totalElements": 1,
    "totalPages": 1
  }
}

Run action

Start one of BetterCloud's actions, such as suspending a user in Okta.

Inputs

ActionactionIdtextRequired
The action to run.
InputsparametersobjectRequired
The action's inputs, keyed by each parameter's ID from List actions, such as {"4ea33cfc-…": "user@example.com"}. The connector ID is one of them.

Outputs

dataobject
The response from BetterCloud.
Example output
{
  "data": {
    "executionId": "example"
  }
}

Run report query

Search BetterCloud's data about your users, groups and files with a GraphQL query, as in its Reporting explorer.

Inputs

QueryquerytextRequired
The GraphQL query, such as { groups(filter: { memberCount: { eq: 0 } }) { id displayValue memberCount } }.

Outputs

dataobject
The response from BetterCloud.
Example output
{
  "data": {
    "data": {}
  }
}

Run workflow

Start a BetterCloud workflow, such as offboarding a user.

Inputs

WorkflowworkflowIdtextRequired
The workflow to run.
InputsparametersobjectRequired
The workflow's inputs, keyed as Get workflow lists them, such as {"userId": "123456"}.

Outputs

dataobject
The response from BetterCloud.
Example output
{
  "data": {
    "executionId": "example"
  }
}

On this page