# Auto-Provision by Entra Group

First, sign in to the Microsoft Entra admin center and navigate to **Enterprise Applications** under **Applications**. If you don’t already have one, create a new application. Once created, assign the required API permissions: `User.Read.All` and `Group.Read.All` by going to **Permissions** under **Security**.

{% hint style="warning" %}
Be sure to **copy and securely store the client secret value** immediately after creating it, as it cannot be viewed again once you leave the page.
{% endhint %}

<figure><img src="/files/6qfeAbmP8knbqnuLxMt6" alt=""><figcaption></figcaption></figure>

Next, open the **WorkSpaces Manager** console and go to **Configuration > Settings > Enterprise**, then scroll down to the **Microsoft Graph (Entra) Settings** section. Enable Microsoft Graph and enter the **Tenant ID**, **Client ID**, and **Secret**.

{% hint style="info" %}
You can find the **Tenant ID** by navigating to **App Registrations** under **Applications**. Click on your application, and you will see the **Directory (tenant) ID** in the overview section.
{% endhint %}

<figure><img src="/files/QyZ8krahLpwtXOcJD8xB" alt=""><figcaption></figcaption></figure>

Once enabled, an additional switch will become available in an **Auto Provision (AP) profile**. To access it, go to **Configuration > AP Profiles**, click on your desired profile, and you’ll see the new switch. This allows you to query the Entra group specified in the profile.

<figure><img src="/files/KdJVdrxQ6zhbxAtVOeDp" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nuvens.cloud/admin/appendices/how-do-i-create-a-workspace-for-a-user/auto-provision-by-entra-group.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
