# D2L Brightspace

> Read courses, enrollments, users, roles, and organization units in Brightspace.

App · 13 actions. Web page: https://docs.lodol.com/docs/integrations/d2l-brightspace

## Actions

### Get course offering

Read a Brightspace course offering.

**Inputs**

- Org unit (`org_unit`, text, required): Enter the organization unit ID from Brightspace.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "Code": "example",
    "Identifier": "example",
    "IsActive": true,
    "Name": "example"
  }
}
```

### Get current user

Show the Brightspace user who approved access.

**Inputs**: None.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "FirstName": "example",
    "Identifier": "example",
    "LastName": "example",
    "UniqueName": "example"
  }
}
```

### Get my enrollment

Read your enrollment in a specific organization unit.

**Inputs**

- Org unit (`org_unit`, text, required): Enter the organization unit ID from Brightspace.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

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

### Get organization details

Read the Brightspace organization’s own identifier and name.

**Inputs**: None.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "Code": "example",
    "Identifier": "example",
    "Name": "example"
  }
}
```

### Get organization unit

Read one organization unit.

**Inputs**

- Org unit (`org_unit`, text, required): Enter the organization unit ID from Brightspace.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "Code": "example",
    "Identifier": "example",
    "Name": "example"
  }
}
```

### Get user

Read a user’s Brightspace profile record.

**Inputs**

- Person (`person`, text, required): Enter the Brightspace user ID.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "FirstName": "example",
    "Identifier": "example",
    "LastName": "example",
    "UniqueName": "example"
  }
}
```

### Get user activation

Read a Brightspace user’s activation status.

**Inputs**

- Person (`person`, text, required): Enter the Brightspace user ID.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "IsActive": true
  }
}
```

### Get user role

Read the details of one Brightspace user role.

**Inputs**

- Role (`role`, text, required): Enter a role ID.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "Identifier": "example",
    "Name": "example"
  }
}
```

### List API versions

Show the API products and versions this Brightspace site supports.

**Inputs**: None.

**Outputs**

- `data` (list): The response from D2L Brightspace.

**Example output**

```json
{
  "data": [
    {
      "ProductCode": "example",
      "Versions": [
        "example"
      ]
    }
  ]
}
```

### List child organization units

Show a page of direct children of an organization unit.

**Inputs**

- Org unit (`org_unit`, text, required): Enter the organization unit ID from Brightspace.
- Bookmark (`bookmark`, text): Use the bookmark returned with the last page.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "Items": [
      {}
    ],
    "PagingInfo": {
      "Bookmark": "example",
      "HasMoreItems": true
    }
  }
}
```

### List my enrollments

Show the courses and organization units you are enrolled in.

**Inputs**

- Bookmark (`bookmark`, text): Use the bookmark returned with the last page.
- Active (`active`, true/false): Filter by active status.
- Start time (`start_time`, date and time): Include enrollments in a time window beginning here.
- End time (`end_time`, date and time): Include enrollments in a time window ending here.
- Accessible (`accessible`, true/false): Filter by whether you can access the organization unit.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "Items": [
      {}
    ],
    "PagingInfo": {
      "Bookmark": "example",
      "HasMoreItems": true
    }
  }
}
```

### List organization units

Search organization units by name or code.

**Inputs**

- Bookmark (`bookmark`, text): Use the bookmark returned with the last page.
- Name (`name`, text): Filter by any part of the unit name.
- Code (`code`, text): Filter by any part of the unit code.

**Outputs**

- `data` (object): The response from D2L Brightspace.

**Example output**

```json
{
  "data": {
    "Items": [
      {}
    ],
    "PagingInfo": {
      "Bookmark": "example",
      "HasMoreItems": true
    }
  }
}
```

### List user roles

Show user roles that the connected Brightspace account can view.

**Inputs**: None.

**Outputs**

- `data` (list): The response from D2L Brightspace.

**Example output**

```json
{
  "data": [
    {
      "Identifier": "example",
      "Name": "example"
    }
  ]
}
```
