> For the complete documentation index, see [llms.txt](https://docs.nuvens.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nuvens.cloud/admin/appendices/how-do-i-create-a-workspace-for-a-user/auto-provision-by-entra-group.md).

# 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="https://1977539604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5qADNWBPym2Zh4ZaguCE%2Fuploads%2FXM3W206n7IbSIJhSl1Un%2Fentra.png?alt=media&amp;token=7cecd1ac-a67d-425c-bb7c-bc8a644a54f8" 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="https://1977539604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5qADNWBPym2Zh4ZaguCE%2Fuploads%2FIF45x3wfAKJc9Mu2fyFe%2Fgraph.png?alt=media&amp;token=8e07c42b-8fbb-4521-8821-af547e65afc5" 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="https://1977539604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5qADNWBPym2Zh4ZaguCE%2Fuploads%2Fja8yU9fhYnvBArM3jSLP%2Fuseentra.png?alt=media&amp;token=df968982-8cd3-42a7-b38d-db3ce66d6821" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
