From 084cc4954460b19c0d65e4bf4aa859b0156e36de Mon Sep 17 00:00:00 2001 From: Todd Baginski Date: Tue, 21 Jan 2020 09:45:33 -0500 Subject: [PATCH] Adding permission related troubleshooting steps. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 3313bb39199..1e6eb53c06a 100644 --- a/README.md +++ b/README.md @@ -129,3 +129,12 @@ There are a set of samples in the `samples` folder to help getting started with ```ps Disconnect-Graph ``` + +## Troubleshooting Permission Related Errors + +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-Application` command if the appropriate permissions are not granted. + +If permission related errors occur and the user you authenticated with in the popup has the appropriate permissions to peform the operation try these steps. + +- You can try running `Disconnect-Graph`, then `Connect-Graph`. Then, run the code that encountered the permission issues to see if it works. +- 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.