> For the complete documentation index, see [llms.txt](https://roboticscript.gitbook.io/code/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roboticscript.gitbook.io/code/entra-id/connect-entra.md).

# 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'
```
