# Create Microsoft Team

Create a Microsoft Team from Apex.

> Kind: Apex method · Updated: 2026-07-01

## Signature

```apex
global static List<String> createMicrosoftTeam(
  List<Types.CreateMicrosoftTeamInput> inputs,
  String runAs
)
```

### Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | List&lt;<a href="#/apex-type-create-microsoft-team-input">Types.CreateMicrosoftTeamInput</a>&gt; | required | List of Types.CreateMicrosoftTeamInput — one entry per team to create. |
| runAs | String | required | Email Id of the user on whose behalf the function should run. To run the action as the automation user, supply integrationUser. |

## Return Type

List<String&gt;

## Example

```apex
List<cldfs.Types.CreateMicrosoftTeamInput> input = new List<cldfs.Types.CreateMicrosoftTeamInput>{
    new cldfs.Types.CreateMicrosoftTeamInput(
    'CloudFiles',
    'Team for managing all activities related to Account XYZ',
    null,
    null
)};
List<String> newMSTeamIds = cldfs.Client.createMicrosoftTeam(input, 'integrationUser');
```
