# ConductorOne

> Govern access with ConductorOne: request and remove access, approve or deny tasks, manage apps and their entitlements, and read users, accounts, catalogs and access reviews.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/conductorone

## Actions

### Approve task

Approve the step a task is waiting on, as the connected user.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID.
- Comment (`comment`, text): A comment to add to the task.
- Step ID (`policy_step_id`, text): The step to approve. Leave empty for the step the task is waiting on.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "taskView": {
      "appPath": "example",
      "identityUserPath": "example",
      "task": {
        "actions": [
          "example"
        ],
        "approverIds": [
          "example"
        ],
        "commentCount": 1,
        "createdAt": "example",
        "createdByUserId": "example",
        "description": "example",
        "displayName": "example",
        "emergencyAccess": true,
        "id": "example",
        "numericId": "example",
        "origin": "example",
        "policy": {
          "current": {
            "id": "example",
            "state": "example"
          }
        },
        "processing": "example",
        "state": "example",
        "stepApproverIds": [
          "example"
        ],
        "type": {
          "certify": {
            "accessReviewId": "example",
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "grant": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "grantDuration": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "revoke": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          }
        },
        "updatedAt": "example",
        "userId": "example"
      },
      "userPath": "example"
    },
    "ticketActionId": "example"
  }
}
```

### Close task

Close a task, ending its workflow. ConductorOne closes it shortly after answering.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID.
- Comment (`comment`, text): A comment to add to the task.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "taskActionId": "example",
    "taskView": {
      "appPath": "example",
      "identityUserPath": "example",
      "task": {
        "actions": [
          "example"
        ],
        "approverIds": [
          "example"
        ],
        "commentCount": 1,
        "createdAt": "example",
        "createdByUserId": "example",
        "description": "example",
        "displayName": "example",
        "emergencyAccess": true,
        "id": "example",
        "numericId": "example",
        "origin": "example",
        "policy": {
          "current": {
            "id": "example",
            "state": "example"
          }
        },
        "processing": "example",
        "state": "example",
        "stepApproverIds": [
          "example"
        ],
        "type": {
          "certify": {
            "accessReviewId": "example",
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "grant": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "grantDuration": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "revoke": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          }
        },
        "updatedAt": "example",
        "userId": "example"
      },
      "userPath": "example"
    }
  }
}
```

### Comment on task

Add a comment to a task without changing it.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID.
- Comment (`comment`, text, required): A comment to add to the task.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "taskView": {
      "appPath": "example",
      "identityUserPath": "example",
      "task": {
        "actions": [
          "example"
        ],
        "approverIds": [
          "example"
        ],
        "commentCount": 1,
        "createdAt": "example",
        "createdByUserId": "example",
        "description": "example",
        "displayName": "example",
        "emergencyAccess": true,
        "id": "example",
        "numericId": "example",
        "origin": "example",
        "policy": {
          "current": {
            "id": "example",
            "state": "example"
          }
        },
        "processing": "example",
        "state": "example",
        "stepApproverIds": [
          "example"
        ],
        "type": {
          "certify": {
            "accessReviewId": "example",
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "grant": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "grantDuration": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "revoke": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          }
        },
        "updatedAt": "example",
        "userId": "example"
      },
      "userPath": "example"
    }
  }
}
```

### Create app

Add an app that ConductorOne manages by hand, without a connector.

**Inputs**

- Name (`display_name`, text, required): The app's name.
- Description (`description`, text): What the app is for.
- Request instructions (`instructions`, text): Shown to people when they request access to the app.
- Monthly cost per seat (USD) (`monthly_cost_usd`, number): The app's monthly cost per seat, in US dollars. From 0 to 1000000.
- Owners (`owners`, list): Users who own the app.
- Account matching (`identity_matching`, text): How ConductorOne matches the app's accounts to people. One of: `APP_USER_IDENTITY_MATCHING_STRICT` (Strict (email or username)), `APP_USER_IDENTITY_MATCHING_DISPLAY_NAME` (Also by display name).

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "app": {
      "appAccountId": "example",
      "appAccountName": "example",
      "certifyPolicyId": "example",
      "createdAt": "example",
      "defaultRequestCatalogId": "example",
      "description": "example",
      "displayName": "example",
      "grantPolicyId": "example",
      "iconUrl": "example",
      "id": "example",
      "identityMatching": "example",
      "instructions": "example",
      "isDirectory": true,
      "isManuallyManaged": true,
      "logoUri": "example",
      "monthlyCostUsd": 1,
      "parentAppId": "example",
      "revokePolicyId": "example",
      "updatedAt": "example",
      "userCount": "example"
    }
  }
}
```

### Create entitlement

Add a permission, group or role to an app that people can request.

**Inputs**

- App (`app_id`, text, required): The app.
- Name (`display_name`, text, required): The entitlement's name.
- Description (`description`, text): What the entitlement gives.
- Label (`slug`, text): A short label for the permission, such as Admin or Read.
- Alias (`alias`, text): A unique alias for looking the entitlement up.
- Grant length (hours) (`duration_grant_hours`, number): How long a grant lasts, in hours. Leave empty for no limit. At least 0.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "appEntitlementView": {
      "appEntitlement": {
        "alias": "example",
        "appId": "example",
        "appResourceId": "example",
        "appResourceTypeId": "example",
        "certifyPolicyId": "example",
        "createdAt": "example",
        "description": "example",
        "displayName": "example",
        "durationGrant": "example",
        "emergencyGrantEnabled": true,
        "grantCount": "example",
        "grantPolicyId": "example",
        "id": "example",
        "isManuallyManaged": true,
        "purpose": "example",
        "revokePolicyId": "example",
        "riskLevelValueId": "example",
        "slug": "example",
        "updatedAt": "example"
      },
      "appPath": "example"
    },
    "expanded": [
      {}
    ]
  }
}
```

### Delete app

Delete an app from ConductorOne.

**Inputs**

- App (`app_id`, text, required): The app.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}
```

### Delete entitlement

Delete an entitlement from an app.

**Inputs**

- App (`app_id`, text, required): The app.
- Entitlement (`entitlement_id`, text, required): The entitlement (a permission, group or role in the app).

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}
```

### Deny task

Deny the step a task is waiting on, as the connected user.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID.
- Comment (`comment`, text): A comment to add to the task.
- Step ID (`policy_step_id`, text): The step to deny. Leave empty for the step the task is waiting on.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "taskView": {
      "appPath": "example",
      "identityUserPath": "example",
      "task": {
        "actions": [
          "example"
        ],
        "approverIds": [
          "example"
        ],
        "commentCount": 1,
        "createdAt": "example",
        "createdByUserId": "example",
        "description": "example",
        "displayName": "example",
        "emergencyAccess": true,
        "id": "example",
        "numericId": "example",
        "origin": "example",
        "policy": {
          "current": {
            "id": "example",
            "state": "example"
          }
        },
        "processing": "example",
        "state": "example",
        "stepApproverIds": [
          "example"
        ],
        "type": {
          "certify": {
            "accessReviewId": "example",
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "grant": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "grantDuration": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "revoke": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          }
        },
        "updatedAt": "example",
        "userId": "example"
      },
      "userPath": "example"
    },
    "ticketActionId": "example"
  }
}
```

### Get access review

Get an access review campaign: its state, scope, policy and dates.

**Inputs**

- Access review (`access_review_id`, text, required): The access review campaign.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "accessReview": {
      "accessReview": {
        "closedAt": "example",
        "completionDate": "example",
        "createdAt": "example",
        "createdById": "example",
        "description": "example",
        "displayName": "example",
        "expectedTicketCount": 1,
        "id": "example",
        "policyId": "example",
        "scheduledStartDate": "example",
        "scopeType": "example",
        "startedAt": "example",
        "state": "example",
        "updatedAt": "example"
      }
    },
    "expanded": [
      {}
    ]
  }
}
```

### Get app

Get an app: its description, policies, user count and default request catalog.

**Inputs**

- App (`app_id`, text, required): The app.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "app": {
      "appAccountId": "example",
      "appAccountName": "example",
      "certifyPolicyId": "example",
      "createdAt": "example",
      "defaultRequestCatalogId": "example",
      "description": "example",
      "displayName": "example",
      "grantPolicyId": "example",
      "iconUrl": "example",
      "id": "example",
      "identityMatching": "example",
      "instructions": "example",
      "isDirectory": true,
      "isManuallyManaged": true,
      "logoUri": "example",
      "monthlyCostUsd": 1,
      "parentAppId": "example",
      "revokePolicyId": "example",
      "updatedAt": "example",
      "userCount": "example"
    }
  }
}
```

### Get current user

Get the ConductorOne user the connection acts as.

**Inputs**: None.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "userView": {
      "managersPath": "example",
      "rolesPath": "example",
      "user": {
        "createdAt": "example",
        "delegatedUserId": "example",
        "deletedAt": "example",
        "department": "example",
        "directoryIds": [
          "example"
        ],
        "directoryStatus": "example",
        "displayName": "example",
        "email": "example",
        "emails": [
          "example"
        ],
        "employeeIds": [
          "example"
        ],
        "employmentStatus": "example",
        "employmentType": "example",
        "id": "example",
        "jobTitle": "example",
        "managerIds": [
          "example"
        ],
        "origin": "example",
        "profile": {},
        "roleIds": [
          "example"
        ],
        "status": "example",
        "type": "example",
        "updatedAt": "example",
        "username": "example",
        "usernames": [
          "example"
        ]
      }
    }
  }
}
```

### Get entitlement

Get one entitlement of an app, with its grant count and policies.

**Inputs**

- App (`app_id`, text, required): The app.
- Entitlement (`entitlement_id`, text, required): The entitlement (a permission, group or role in the app).

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "appEntitlementView": {
      "appEntitlement": {
        "alias": "example",
        "appId": "example",
        "appResourceId": "example",
        "appResourceTypeId": "example",
        "certifyPolicyId": "example",
        "createdAt": "example",
        "description": "example",
        "displayName": "example",
        "durationGrant": "example",
        "emergencyGrantEnabled": true,
        "grantCount": "example",
        "grantPolicyId": "example",
        "id": "example",
        "isManuallyManaged": true,
        "purpose": "example",
        "revokePolicyId": "example",
        "riskLevelValueId": "example",
        "slug": "example",
        "updatedAt": "example"
      },
      "appPath": "example"
    },
    "expanded": [
      {}
    ]
  }
}
```

### Get task

Get a task: its kind, state, the person and access it is about, and the step it is waiting on.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "taskView": {
      "appPath": "example",
      "identityUserPath": "example",
      "task": {
        "actions": [
          "example"
        ],
        "approverIds": [
          "example"
        ],
        "commentCount": 1,
        "createdAt": "example",
        "createdByUserId": "example",
        "description": "example",
        "displayName": "example",
        "emergencyAccess": true,
        "id": "example",
        "numericId": "example",
        "origin": "example",
        "policy": {
          "current": {
            "id": "example",
            "state": "example"
          }
        },
        "processing": "example",
        "state": "example",
        "stepApproverIds": [
          "example"
        ],
        "type": {
          "certify": {
            "accessReviewId": "example",
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "grant": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "grantDuration": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "revoke": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          }
        },
        "updatedAt": "example",
        "userId": "example"
      },
      "userPath": "example"
    }
  }
}
```

### Get user

Get a user: their emails, status, department, job title, managers and roles.

**Inputs**

- User (`c1_user_id`, text, required): The user.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "userView": {
      "managersPath": "example",
      "rolesPath": "example",
      "user": {
        "createdAt": "example",
        "delegatedUserId": "example",
        "deletedAt": "example",
        "department": "example",
        "directoryIds": [
          "example"
        ],
        "directoryStatus": "example",
        "displayName": "example",
        "email": "example",
        "emails": [
          "example"
        ],
        "employeeIds": [
          "example"
        ],
        "employmentStatus": "example",
        "employmentType": "example",
        "id": "example",
        "jobTitle": "example",
        "managerIds": [
          "example"
        ],
        "origin": "example",
        "profile": {},
        "roleIds": [
          "example"
        ],
        "status": "example",
        "type": "example",
        "updatedAt": "example",
        "username": "example",
        "usernames": [
          "example"
        ]
      }
    }
  }
}
```

### List access reviews

List the access review campaigns, with each one's state and dates.

**Inputs**

- Page size (`page_size`, number): How many records to return, from 10 to 100. ConductorOne returns 25 when this is empty. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page, to read the next one.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "list": [
      {
        "accessReview": {
          "closedAt": "example",
          "completionDate": "example",
          "createdAt": "example",
          "createdById": "example",
          "description": "example",
          "displayName": "example",
          "expectedTicketCount": 1,
          "id": "example",
          "policyId": "example",
          "scheduledStartDate": "example",
          "scopeType": "example",
          "startedAt": "example",
          "state": "example",
          "updatedAt": "example"
        }
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List app accounts

List the accounts in an app, with the person each belongs to.

**Inputs**

- App (`app_id`, text, required): The app.
- Page size (`page_size`, number): How many records to return, from 10 to 100. ConductorOne returns 25 when this is empty. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page, to read the next one.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "list": [
      {
        "appUser": {
          "appId": "example",
          "appUserType": "example",
          "createdAt": "example",
          "displayName": "example",
          "email": "example",
          "emails": [
            "example"
          ],
          "id": "example",
          "identityUserId": "example",
          "profile": {},
          "status": {
            "details": "example",
            "status": "example"
          },
          "updatedAt": "example",
          "username": "example"
        }
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List apps

List the apps ConductorOne governs access to.

**Inputs**

- Page size (`page_size`, number): How many records to return, from 10 to 100. ConductorOne returns 25 when this is empty. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page, to read the next one.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "list": [
      {
        "appAccountId": "example",
        "appAccountName": "example",
        "certifyPolicyId": "example",
        "createdAt": "example",
        "defaultRequestCatalogId": "example",
        "description": "example",
        "displayName": "example",
        "grantPolicyId": "example",
        "iconUrl": "example",
        "id": "example",
        "identityMatching": "example",
        "instructions": "example",
        "isDirectory": true,
        "isManuallyManaged": true,
        "logoUri": "example",
        "monthlyCostUsd": 1,
        "parentAppId": "example",
        "revokePolicyId": "example",
        "updatedAt": "example",
        "userCount": "example"
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List entitlement users

List the accounts that hold an entitlement, with when each was granted and when it ends.

**Inputs**

- App (`app_id`, text, required): The app.
- Entitlement (`entitlement_id`, text, required): The entitlement (a permission, group or role in the app).
- Page size (`page_size`, number): How many records to return, from 10 to 100. ConductorOne returns 25 when this is empty. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page, to read the next one.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "list": [
      {
        "appEntitlementId": "example",
        "appEntitlementUserBindingCreatedAt": "example",
        "appEntitlementUserBindingDeprovisionAt": "example",
        "appId": "example",
        "appUser": {
          "appUser": {
            "appId": "example",
            "appUserType": "example",
            "createdAt": "example",
            "displayName": "example",
            "email": "example",
            "emails": [
              "example"
            ],
            "id": "example",
            "identityUserId": "example",
            "profile": {},
            "status": {
              "details": "example",
              "status": "example"
            },
            "updatedAt": "example",
            "username": "example"
          }
        },
        "appUserId": "example",
        "originatingTicketId": "example"
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List entitlements

List an app's entitlements: the permissions, groups and roles people can be granted in it.

**Inputs**

- App (`app_id`, text, required): The app.
- Search (`q`, text): Words to look for in the entitlements' names.
- App account ID (`app_user_id`, text): Only the entitlements this app account has.
- Page size (`page_size`, number): How many records to return, from 10 to 100. ConductorOne returns 25 when this is empty. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page, to read the next one.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "list": [
      {
        "appEntitlement": {
          "alias": "example",
          "appId": "example",
          "appResourceId": "example",
          "appResourceTypeId": "example",
          "certifyPolicyId": "example",
          "createdAt": "example",
          "description": "example",
          "displayName": "example",
          "durationGrant": "example",
          "emergencyGrantEnabled": true,
          "grantCount": "example",
          "grantPolicyId": "example",
          "id": "example",
          "isManuallyManaged": true,
          "purpose": "example",
          "revokePolicyId": "example",
          "riskLevelValueId": "example",
          "slug": "example",
          "updatedAt": "example"
        },
        "appPath": "example"
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List request catalogs

List the catalogs people request access from.

**Inputs**

- Page size (`page_size`, number): How many records to return, from 10 to 100. ConductorOne returns 25 when this is empty. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page, to read the next one.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "list": [
      {
        "memberCount": "example",
        "requestCatalog": {
          "createdAt": "example",
          "createdByUserId": "example",
          "description": "example",
          "displayName": "example",
          "id": "example",
          "published": true,
          "requestBundle": true,
          "type": "example",
          "updatedAt": "example",
          "visibleToEveryone": true
        }
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List users

List the tenant's users, a page at a time.

**Inputs**

- Page size (`page_size`, number): How many records to return, from 10 to 100. ConductorOne returns 25 when this is empty. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page, to read the next one.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "list": [
      {
        "managersPath": "example",
        "rolesPath": "example",
        "user": {
          "createdAt": "example",
          "delegatedUserId": "example",
          "deletedAt": "example",
          "department": "example",
          "directoryIds": [
            "example"
          ],
          "directoryStatus": "example",
          "displayName": "example",
          "email": "example",
          "emails": [
            "example"
          ],
          "employeeIds": [
            "example"
          ],
          "employmentStatus": "example",
          "employmentType": "example",
          "id": "example",
          "jobTitle": "example",
          "managerIds": [
            "example"
          ],
          "origin": "example",
          "profile": {},
          "roleIds": [
            "example"
          ],
          "status": "example",
          "type": "example",
          "updatedAt": "example",
          "username": "example",
          "usernames": [
            "example"
          ]
        }
      }
    ],
    "nextPageToken": "example"
  }
}
```

### Remove access

Open a task asking for a person's (or an app account's) entitlement to be removed.

**Inputs**

- App (`app_id`, text, required): The app the entitlement belongs to.
- Entitlement (`entitlement_id`, text, required): The entitlement to remove.
- User (`identity_user_id`, text): The ConductorOne user. Give this or the app account.
- App account ID (`app_user_id`, text): The account in the app, when the access is for an account rather than a person.
- Justification (`description`, text): Why the access should be removed.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "taskView": {
      "appPath": "example",
      "identityUserPath": "example",
      "task": {
        "actions": [
          "example"
        ],
        "approverIds": [
          "example"
        ],
        "commentCount": 1,
        "createdAt": "example",
        "createdByUserId": "example",
        "description": "example",
        "displayName": "example",
        "emergencyAccess": true,
        "id": "example",
        "numericId": "example",
        "origin": "example",
        "policy": {
          "current": {
            "id": "example",
            "state": "example"
          }
        },
        "processing": "example",
        "state": "example",
        "stepApproverIds": [
          "example"
        ],
        "type": {
          "certify": {
            "accessReviewId": "example",
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "grant": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "grantDuration": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "revoke": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          }
        },
        "updatedAt": "example",
        "userId": "example"
      },
      "userPath": "example"
    }
  }
}
```

### Request access

Open a task asking for a person (or an app account) to be granted an entitlement. It then goes through the entitlement's approval policy.

**Inputs**

- App (`app_id`, text, required): The app the entitlement belongs to.
- Entitlement (`entitlement_id`, text, required): The entitlement to grant.
- User (`identity_user_id`, text): The ConductorOne user. Give this or the app account.
- App account ID (`app_user_id`, text): The account in the app, when the access is for an account rather than a person.
- Justification (`description`, text): Why the access is needed.
- Length (hours) (`grant_duration_hours`, number): How long the access should last, in hours. Leave empty to use the entitlement's default. At least 0.
- Emergency access (`emergency_access`, true/false): Ask for emergency access, which uses the entitlement's emergency policy.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "taskView": {
      "appPath": "example",
      "identityUserPath": "example",
      "task": {
        "actions": [
          "example"
        ],
        "approverIds": [
          "example"
        ],
        "commentCount": 1,
        "createdAt": "example",
        "createdByUserId": "example",
        "description": "example",
        "displayName": "example",
        "emergencyAccess": true,
        "id": "example",
        "numericId": "example",
        "origin": "example",
        "policy": {
          "current": {
            "id": "example",
            "state": "example"
          }
        },
        "processing": "example",
        "state": "example",
        "stepApproverIds": [
          "example"
        ],
        "type": {
          "certify": {
            "accessReviewId": "example",
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "grant": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "grantDuration": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          },
          "revoke": {
            "appEntitlementId": "example",
            "appId": "example",
            "appUserId": "example",
            "identityUserId": "example",
            "outcome": "example",
            "outcomeTime": "example"
          }
        },
        "updatedAt": "example",
        "userId": "example"
      },
      "userPath": "example"
    }
  }
}
```

### Search tasks

Find access request, removal and review tasks by state, type, app, person or when they were created.

**Inputs**

- Search (`query`, text): Words to look for in the task's name, description or number.
- States (`task_states`, list): Only open or only closed tasks. One or more of: `TASK_STATE_OPEN` (Open), `TASK_STATE_CLOSED` (Closed).
- Kinds (`task_types`, list): Only tasks of these kinds. One or more of: `grant` (Access request (grant)), `revoke` (Access removal (revoke)), `certify` (Access review (certify)), `offboarding`, `action`.
- Apps (`app_ids`, list): Only tasks for these apps.
- People (`subject_ids`, list): Only tasks about these people.
- Assigned to (`assignee_ids`, list): Only tasks assigned to these people.
- Created after (`created_after`, date and time): Only tasks created after this time.
- Created before (`created_before`, date and time): Only tasks created before this time.
- Finished after (`outcome_after`, date and time): Only tasks that reached their outcome (granted, denied, removed and so on) after this time.
- Order (`sort_by`, text): The order to list tasks in. One of: `TASK_SEARCH_SORT_BY_REVERSE_CREATED_AT` (Newest first), `TASK_SEARCH_SORT_BY_CREATED_AT` (Oldest first).
- Page size (`page_size`, number): How many tasks to return, from 10 to 100. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "list": [
      {
        "appPath": "example",
        "identityUserPath": "example",
        "task": {
          "actions": [
            "example"
          ],
          "approverIds": [
            "example"
          ],
          "commentCount": 1,
          "createdAt": "example",
          "createdByUserId": "example",
          "description": "example",
          "displayName": "example",
          "emergencyAccess": true,
          "id": "example",
          "numericId": "example",
          "origin": "example",
          "policy": {
            "current": {
              "id": "example",
              "state": "example"
            }
          },
          "processing": "example",
          "state": "example",
          "stepApproverIds": [
            "example"
          ],
          "type": {
            "certify": {
              "accessReviewId": "example",
              "appEntitlementId": "example",
              "appId": "example",
              "appUserId": "example",
              "identityUserId": "example",
              "outcome": "example",
              "outcomeTime": "example"
            },
            "grant": {
              "appEntitlementId": "example",
              "appId": "example",
              "appUserId": "example",
              "grantDuration": "example",
              "identityUserId": "example",
              "outcome": "example",
              "outcomeTime": "example"
            },
            "revoke": {
              "appEntitlementId": "example",
              "appId": "example",
              "appUserId": "example",
              "identityUserId": "example",
              "outcome": "example",
              "outcomeTime": "example"
            }
          },
          "updatedAt": "example",
          "userId": "example"
        },
        "userPath": "example"
      }
    ],
    "nextPageToken": "example"
  }
}
```

### Search users

Find users by name or email, status, department, job title or manager.

**Inputs**

- Search (`query`, text): Words to look for in names and emails.
- Email (`email`, text): Only the user with exactly this email.
- Statuses (`statuses`, list): Only users with these statuses. One or more of: `ENABLED`, `DISABLED`, `DELETED`.
- Departments (`departments`, list): Only users in these departments.
- Job titles (`job_titles`, list): Only users with these job titles.
- Managers (`manager_ids`, list): Only users these people manage.
- Page size (`page_size`, number): How many users to return, from 10 to 100. From 1 to 100.
- Page token (`page_token`, text): The nextPageToken from the previous page.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "expanded": [
      {}
    ],
    "list": [
      {
        "managersPath": "example",
        "rolesPath": "example",
        "user": {
          "createdAt": "example",
          "delegatedUserId": "example",
          "deletedAt": "example",
          "department": "example",
          "directoryIds": [
            "example"
          ],
          "directoryStatus": "example",
          "displayName": "example",
          "email": "example",
          "emails": [
            "example"
          ],
          "employeeIds": [
            "example"
          ],
          "employmentStatus": "example",
          "employmentType": "example",
          "id": "example",
          "jobTitle": "example",
          "managerIds": [
            "example"
          ],
          "origin": "example",
          "profile": {},
          "roleIds": [
            "example"
          ],
          "status": "example",
          "type": "example",
          "updatedAt": "example",
          "username": "example",
          "usernames": [
            "example"
          ]
        }
      }
    ],
    "nextPageToken": "example"
  }
}
```

### Update app

Change an app's name, description, request instructions or cost. Empty fields are left as they are.

**Inputs**

- App (`app_id`, text, required): The app.
- Name (`display_name`, text): The app's new name.
- Description (`description`, text): The app's new description.
- Request instructions (`instructions`, text): New instructions shown when people request access.
- Monthly cost per seat (USD) (`monthly_cost_usd`, number): The new monthly cost per seat, in US dollars. From 0 to 1000000.

**Outputs**

- `data` (object): The response from ConductorOne.

**Example output**

```json
{
  "data": {
    "app": {
      "appAccountId": "example",
      "appAccountName": "example",
      "certifyPolicyId": "example",
      "createdAt": "example",
      "defaultRequestCatalogId": "example",
      "description": "example",
      "displayName": "example",
      "grantPolicyId": "example",
      "iconUrl": "example",
      "id": "example",
      "identityMatching": "example",
      "instructions": "example",
      "isDirectory": true,
      "isManuallyManaged": true,
      "logoUri": "example",
      "monthlyCostUsd": 1,
      "parentAppId": "example",
      "revokePolicyId": "example",
      "updatedAt": "example",
      "userCount": "example"
    }
  }
}
```
