> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowforma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Azure User

> Use the Create Azure user business rule to provision new Office 365 users and assign licences directly from a FlowForma flow as an Azure administrator.

**Create Azure user** is part of the **Office365 AD connector** feature and must be purchased separately. It is only available in Office 365.

Use this business rule to create users. Only an Azure administrator can configure and run this rule.

## Title

The first part of the business rule lets you define a **title** for your rule and select the event on which it operates. The default title is the standard **FlowForma** rule name; change it by deleting the text and entering your own.

In the **event** field you determine when the rule is executed. For a flow this can occur when the form is loaded, started, or completed. For a step this can occur when the step is started, saved, or completed. For questions it can occur when the question is updated.

## Rule condition(s)

The second part of the business rule lets you set conditions. These are not required, but if entered they control when the rule is executed in relation to other items in the form.

## Rule actions

1. **Create application** at [apps.dev.microsoft.com](https://apps.dev.microsoft.com/):
   * Navigate to the app list.
   * Log in with a personal or work/school account.
   * Click **Add an app**.
2. Enter the **Application Id** and **Application redirect URL** from the app you created.
3. Enter the new user's **User name** and **User surname**.
4. Enter the **Mail domain** (for example, `@company.onmicrosoft.com`).
5. Select the **Usage location** for the new user.
6. Enter a **Default password** (8 to 16 characters).
7. Under **Assign licenses**, click **Connect** to load the available licences, then select the ones to assign to the user.

When configuring the rule, you map a user's licence using the licence codes below:

| Full description                       | Description in rule      |
| -------------------------------------- | ------------------------ |
| Visio Pro for Office 365               | VISIOCLIENT              |
| Office 365 Enterprise E3 Developer     | DEVELOPERPACK            |
| Power BI Pro                           | POWER\_BI\_PRO           |
| Office 365 Enterprise E3               | ENTERPRISEPACK           |
| Project Online Essentials              | PROJECTESSENTIALS        |
| Dynamics 365 Plan 1 Enterprise Edition | DYN365\_ENTERPRISE\_PLAN |
| Intune                                 | INTUNE\_A                |
| Enterprise Mobility + Security E3      | EMS                      |
| Project Online Professional            | PROJECTPROFESSIONAL      |

<Info>
  * To create this rule, the person creating it must be an Azure admin.
  * When creating a new form for the first time, allow pop-ups.
  * If you want to use this rule in Internet Explorer or Edge, update to the latest version.
</Info>
