# Bitwarden

> Manage Bitwarden organization members, groups and collections, and inspect policies and event logs.

App · 22 actions. Web page: https://docs.lodol.com/docs/integrations/bitwarden

## Actions

### Create group

Create a group.

**Inputs**

- Name (`name`, text, required): The name of the group.
- External id (`external_id`, text): External identifier for reference or linking this group to another system, such as a user directory.
- Collections (`collections`, list): The associated collections that this group can access.

**Outputs**

- `data` (object): A user group.

**Example output**

```json
{
  "data": {
    "collections": [],
    "externalId": "example",
    "id": "example",
    "name": "example",
    "object": "example"
  }
}
```

### Delete group

Permanently delete a group. This cannot be undone.

**Inputs**

- Id (`id`, text, required): The identifier of the group to be deleted.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Get collection

Get the details of one collection by its ID.

**Inputs**

- Id (`id`, text, required): The identifier of the collection to be retrieved.

**Outputs**

- `data` (object): A collection.

**Example output**

```json
{
  "data": {
    "externalId": "example",
    "groups": [],
    "id": "example",
    "object": "example"
  }
}
```

### Get group

Get the details of one group by its ID.

**Inputs**

- Id (`id`, text, required): The identifier of the group to be retrieved.

**Outputs**

- `data` (object): A user group.

**Example output**

```json
{
  "data": {
    "collections": [],
    "externalId": "example",
    "id": "example",
    "name": "example",
    "object": "example"
  }
}
```

### Get group members

Get the IDs of every member in a group.

**Inputs**

- Id (`id`, text, required): The identifier of the group to be retrieved.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### Get member

Get the details of one member of your organization by their ID.

**Inputs**

- Id (`id`, text, required): The identifier of the member to be retrieved.

**Outputs**

- `data` (object): An organization member.

**Example output**

```json
{
  "data": {
    "collections": [],
    "email": "example",
    "externalId": "example",
    "id": "example",
    "name": "example",
    "object": "example",
    "permissions": {
      "accessEventLogs": false,
      "accessImportExport": false,
      "accessReports": false,
      "createNewCollections": false,
      "deleteAnyCollection": false,
      "editAnyCollection": false,
      "manageAccessRules": false,
      "manageGroups": false,
      "managePolicies": false,
      "manageResetPassword": false,
      "manageScim": false,
      "manageSso": false,
      "manageUsers": false
    },
    "resetPasswordEnrolled": false,
    "ssoExternalId": "example",
    "status": 0,
    "twoFactorEnabled": false,
    "type": 0,
    "userId": "example"
  }
}
```

### Get member groups

Get the IDs of every group a member belongs to.

**Inputs**

- Id (`id`, text, required): The identifier of the member to be retrieved.

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### Get policy

Get the details of one policy.

**Inputs**

- Type (`type`, number, required): The type of policy to be retrieved. One of: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, and 13 more.

**Outputs**

- `data` (object): A policy.

**Example output**

```json
{
  "data": {
    "data": {},
    "enabled": false,
    "id": "example",
    "object": "example",
    "type": 0
  }
}
```

### Get subscription

Get your organization's subscription details.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "passwordManager": {
      "maxAutoScaleSeats": 1,
      "seats": 1,
      "storage": 1
    },
    "secretsManager": {
      "maxAutoScaleSeats": 1,
      "maxAutoScaleServiceAccounts": 1,
      "seats": 1,
      "serviceAccounts": 1
    }
  }
}
```

### List collections

List your organization's collections, without the groups that can access them.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example"
  }
}
```

### List events

List your organization's event logs, one page at a time. With no dates it returns the last 30 days; with only a start date, events from then until now; with only an end date, the 30 days before it. The range can be at most 367 days.

**Inputs**

- Start (`start`, date and time): The start date. If omitted, defaults to 30 days before the end date (or 30 days ago when no end date is given).
- End (`end`, date and time): The end date. If omitted, defaults to the current time.
- Acting user id (`acting_user_id`, text): The unique identifier of the user that performed the event.
- Item id (`item_id`, text): The unique identifier of the related item that the event describes.
- Secret id (`secret_id`, text): The unique identifier of the related secret that the event describes.
- Project id (`project_id`, text): The unique identifier of the related project that the event describes.
- Continuation token (`continuation_token`, text): A cursor for use in pagination.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "continuationToken": "example",
    "data": [],
    "object": "example"
  }
}
```

### List groups

List your organization's groups, with the collections each can access.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example"
  }
}
```

### List members

List your organization's members, with the collections each can access.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example"
  }
}
```

### List policies

List your organization's policies.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example"
  }
}
```

### Reinvite member

Send a member their invitation email again.

**Inputs**

- Id (`id`, text, required): The identifier of the member to re-invite.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Restore member

Restore a member whose access was revoked.

**Inputs**

- Id (`id`, text, required): The identifier of the member to be restored.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Revoke member

Revoke a member's access to your organization.

**Inputs**

- Id (`id`, text, required): The ID of the member to be revoked.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Set group members

Set which members belong to a group.

**Inputs**

- Id (`id`, text, required): The identifier of the group to be updated.
- Member ids (`member_ids`, list): The associated member ids that have access to this object.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Set member groups

Set which groups a member belongs to.

**Inputs**

- Id (`id`, text, required): The identifier of the member to be updated.
- Group ids (`group_ids`, list): The associated group ids that this object can access.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Update collection

Update a collection. Any setting you leave blank is cleared, not kept.

**Inputs**

- Id (`id`, text, required): The identifier of the collection to be updated.
- External id (`external_id`, text): External identifier for reference or linking this collection to another system.
- Groups (`groups`, list): The associated groups that this collection is assigned to.

**Outputs**

- `data` (object): A collection.

**Example output**

```json
{
  "data": {
    "externalId": "example",
    "groups": [],
    "id": "example",
    "object": "example"
  }
}
```

### Update group

Update a group. Any setting you leave blank is cleared, not kept.

**Inputs**

- Id (`id`, text, required): The identifier of the group to be updated.
- Name (`name`, text, required): The name of the group.
- External id (`external_id`, text): External identifier for reference or linking this group to another system, such as a user directory.
- Collections (`collections`, list): The associated collections that this group can access.

**Outputs**

- `data` (object): A user group.

**Example output**

```json
{
  "data": {
    "collections": [],
    "externalId": "example",
    "id": "example",
    "name": "example",
    "object": "example"
  }
}
```

### Update member

Update a member. Any setting you leave blank is cleared, not kept.

**Inputs**

- Id (`id`, text, required): The identifier of the member to be updated.
- Type (`type`, number, required): Type. One of: `0`, `1`, `2`, `4`.
- External id (`external_id`, text): External identifier for reference or linking this member to another system, such as a user directory.
- Permissions (`permissions`, object): Represents a member's custom permissions if the member has a Custom role.
- Collections (`collections`, list): The associated collections that this member can access.
- Groups (`groups`, list): Ids of the associated groups that this member will belong to
- Email (`email`, text): The member's email address. Can only be changed for a claimed member without a master password when the new address is on a domain verified by the organization.
- Name (`name`, text): The member's name. Can only be changed for a claimed member.

**Outputs**

- `data` (object): An organization member.

**Example output**

```json
{
  "data": {
    "collections": [],
    "email": "example",
    "externalId": "example",
    "id": "example",
    "name": "example",
    "object": "example",
    "permissions": {
      "accessEventLogs": false,
      "accessImportExport": false,
      "accessReports": false,
      "createNewCollections": false,
      "deleteAnyCollection": false,
      "editAnyCollection": false,
      "manageAccessRules": false,
      "manageGroups": false,
      "managePolicies": false,
      "manageResetPassword": false,
      "manageScim": false,
      "manageSso": false,
      "manageUsers": false
    },
    "resetPasswordEnrolled": false,
    "ssoExternalId": "example",
    "status": 0,
    "twoFactorEnabled": false,
    "type": 0,
    "userId": "example"
  }
}
```
