# Microsoft 365 Admin

> Manage directory users and groups, and read Microsoft 365 licenses, domains, roles and audit logs.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/microsoft-365-admin

## Actions

### Create group

Create group.

**Inputs**

- Display name (`display_name`, text, required): Display name.
- Mail nickname (`mail_nickname`, text, required): Mail nickname.
- Description (`description`, text): Description.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example"
  }
}
```

### Create user

Create user.

**Inputs**

- Display name (`display_name`, text, required): Display name.
- User principal name (`user_principal_name`, text, required): User principal name.
- Mail nickname (`mail_nickname`, text, required): Mail nickname.
- Password (`password`, text, required): Password.
- Account enabled (`account_enabled`, true/false, required): Account enabled.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example"
  }
}
```

### Delete group

Delete group.

**Inputs**

- Group (`group_id`, text, required): Group.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### Delete user

Delete user.

**Inputs**

- User (`directory_user_id`, text, required): User.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### Get domain

Get domain.

**Inputs**

- Domain id (`domain_id`, text, required): Domain id.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example"
  }
}
```

### Get group

Get group.

**Inputs**

- Group (`group_id`, text, required): Group.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example"
  }
}
```

### Get user

Get user.

**Inputs**

- User (`directory_user_id`, text, required): User.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example"
  }
}
```

### List audit logs

List audit logs.

**Inputs**

- Top (`top`, number): Top. From 1 to 999.
- Filter (`filter`, text): Microsoft Graph OData filter; leave empty for all visible records.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List directory roles

List directory roles.

**Inputs**: None.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List domains

List domains.

**Inputs**: None.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List group members

List group members.

**Inputs**

- Group (`group_id`, text, required): Group.
- Top (`top`, number): Top. From 1 to 999.
- Filter (`filter`, text): Microsoft Graph OData filter; leave empty for all visible records.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List groups

List groups.

**Inputs**

- Top (`top`, number): Top. From 1 to 999.
- Filter (`filter`, text): Microsoft Graph OData filter; leave empty for all visible records.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List licenses

List licenses.

**Inputs**: None.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List organizations

List organizations.

**Inputs**: None.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List role definitions

List role definitions.

**Inputs**: None.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List sign ins

List sign ins.

**Inputs**

- Top (`top`, number): Top. From 1 to 999.
- Filter (`filter`, text): Microsoft Graph OData filter; leave empty for all visible records.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List user direct reports

List the people who report directly to this user.

**Inputs**

- User (`directory_user_id`, text, required): User.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List user groups

List user groups.

**Inputs**

- User (`directory_user_id`, text, required): User.
- Top (`top`, number): Top. From 1 to 999.
- Filter (`filter`, text): Microsoft Graph OData filter; leave empty for all visible records.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### List users

List users.

**Inputs**

- Top (`top`, number): Top. From 1 to 999.
- Filter (`filter`, text): Microsoft Graph OData filter; leave empty for all visible records.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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

### Update user

Update user.

**Inputs**

- User (`directory_user_id`, text, required): User.
- Display name (`display_name`, text): Display name.
- Job title (`job_title`, text): Job title.
- Department (`department`, text): Department.
- Usage location (`usage_location`, text): Usage location. One of: `AD` (Andorra), `AE` (United Arab Emirates), `AF` (Afghanistan), `AG` (Antigua & Barbuda), `AI` (Anguilla), `AL` (Albania), `AM` (Armenia), `AO` (Angola), `AQ` (Antarctica), `AR` (Argentina), and 240 more.

**Outputs**

- `data` (object): The service response, including pagination metadata when present.

**Example output**

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