You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft Graph | `Microsoft.Graph` | [![Mg]][MgGallery]
9
9
10
-
For a list of modules found in this repository, see the [Microsoft Graph Graph PowerShell modules](https://github.com/microsoftgraph/msgraph-sdk-powershell/wiki/MS-Graph-PowerShell-Modules) document.
10
+
For a list of modules found in this repository, see the [Microsoft Graph PowerShell modules](https://github.com/microsoftgraph/msgraph-sdk-powershell/wiki/MS-Graph-PowerShell-Modules) document.
11
11
12
12
## Installation
13
13
### PowerShell Gallery
@@ -18,45 +18,45 @@ All the modules are published on [PowerShell Gallery](https://www.powershellgall
18
18
Install-Module Microsoft.Graph
19
19
```
20
20
21
-
If you are upgrading from our preview modules, run `Install-Module` with AllowClobber and Force parameter to avoid command name conflicts:
21
+
If you are upgrading from our preview modules, run `Install-Module` with AllowClobber and Force parameters to avoid command name conflicts:
There are a set of samples in the `samples` folder to help in getting started with the library. If you have an older version of these modules installed, there are extra uninstall instructions in the [InstallModule](./samples/0-InstallModule.ps1) script.
25
+
There is a set of samples in the `samples` folder to help in getting started with the library. If you have an older version of these modules installed, there are extra uninstall instructions in the [InstallModule](./samples/0-InstallModule.ps1) script.
26
26
27
27
## Usage
28
28
29
29
1. Authentication
30
30
31
-
The SDK supports two types of authentication: delegated access, and app-oly access.
31
+
The SDK supports two types of authentication: delegated access, and app-only access.
@@ -76,7 +76,7 @@ There are a set of samples in the `samples` folder to help in getting started wi
76
76
5. Sign out of the current logged-in context i.e. app only or delegated access.
77
77
78
78
```ps
79
-
Disconnect-Graph
79
+
Disconnect-MgGraph
80
80
```
81
81
## API Version
82
82
By default, the SDK uses the Microsoft Graph REST API v1.0. You can change this by using the `Select-MgProfile` command. This reloads all modules and only loads commands that call beta endpoint.
@@ -87,12 +87,15 @@ Select-MgProfile -Name "beta"
87
87
88
88
## Troubleshooting Permission Related Errors
89
89
90
-
When working with various operations in the Graph, you may encounter an error such as "Insufficient privileges to complete the operation." For example, this particular error can occur when using the `New-MgApplication` command if the appropriate permissions are not granted.
90
+
When working with various operations in the Graph, you may encounter an error such as "Insufficient privileges to complete the operation." For example, this particular error can occur when using the `New-MgApplication` command if the appropriate permissions are not granted.
91
91
92
92
If permission related errors occur and the user you authenticated with in the popup has the appropriate permissions to perform the operation try these steps.
93
93
94
-
- You can try running `Disconnect-Graph`, then `Connect-Graph`. Then, run the code that encountered the permission issues to see if it works.
95
-
- You can try running `Connect-Graph -ForceRefresh`. This will trigger a refresh of the access token in your cache. MSAL will only refresh the access token in your cache if it has expired (usually an hour), or if you explicitly refresh it via `-ForceRefresh`. Then, run the code that encountered the permission issues to see if it works.
94
+
- You can try running `Disconnect-MgGraph`, then `Connect-MgGraph`. Then, run the code that encountered the permission issues to see if it works.
95
+
- You can try running `Connect-MgGraph -ForceRefresh`. This will trigger a refresh of the access token in your cache. MSAL will only refresh the access token in your cache if it has expired (usually an hour), or if you explicitly refresh it via `-ForceRefresh`. Then, run the code that encountered the permission issues to see if it works.
96
+
97
+
## Known Issues
98
+
- If you attempt to run `Connect-Graph` from the PowerShell ISE (integrated scripting environment) the command fails with an error "Device code terminal timed-out after {X} seconds". This is a known issue and it is recommended to use a PowerShell host other than the ISE.
96
99
97
100
## Issues
98
101
If you find any bugs when using the Microsoft Graph PowerShell modules, please file an issue in our GitHub issues page.
@@ -109,4 +112,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT
0 commit comments