# Connect Entra

## Connect Entra

```powershell
Connect-MgGraph -Scopes 'User.Read.All'
```

## Use Find-MgGraphCommand <a href="#use-find-mggraphcommand" id="use-find-mggraphcommand"></a>

**Example: Use a URI to get all related cmdlets**

```powershell
Find-MgGraphCommand -Uri '/users/{id}'
```

**Example: Pass a command and get the URI it calls**

```powershell
Find-MgGraphCommand -Command 'Get-MgUser'
```

**Example: Pass a command and get the permissions required**

```powershell
Find-MgGraphCommand -command Get-MgUser | Select -First 1 -ExpandProperty Permissions
```

**Example: Search for commands using URI wildcard**

```powershell
Find-MgGraphCommand -Uri ".*users.*" -Method 'Get'
```


---

# 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://roboticscript.gitbook.io/code/entra-id/connect-entra.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.
