> 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="/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
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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` 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>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
