Skip to content

[BUG]: GraphMinimalPermissionsGuidancePlugin - Couldn't determine minimal permissions for the following URLs: - (No permissions found.) #1605

Closed

Description

@nse7ens

Description

Running the devproxy with GraphMinimalPermissionsGuidancePlugin fails to output any result, stating Couldn't determine minimal permissions for the following URLs: - (No permissions found.)

 info    Dev Proxy API listening on http://127.0.0.1:8897...
 info    Dev Proxy listening on 127.0.0.1:8000...

Hotkeys: issue (w)eb request, (r)ecord, (s)top recording, (c)lear screen
Press CTRL+C to stop Dev Proxy

◉ Recording...

 req   ╭ GET https://graph.microsoft.com/v1.0/groups?$filter=groupTypes%2Fany%28groupType%3A%20groupType%20eq%20%27Unified%27%29
 time  │ 27/03/2026 07:52:02 +00:00
 pass  ╰ Passed through

 req   ╭ GET https://graph.microsoft.com/v1.0/groups/098c6369-2985-42ba-9606-41de065849d2/members
 time  │ 27/03/2026 07:52:03 +00:00
 pass  ╰ Passed through

 req   ╭ GET https://graph.microsoft.com/v1.0/teams/098c6369-2985-42ba-9606-41de065849d2
 time  │ 27/03/2026 07:52:06 +00:00
 pass  ╰ Passed through

 req   ╭ GET https://graph.microsoft.com/v1.0/groups/098c6369-2985-42ba-9606-41de065849d2/settings
 time  │ 27/03/2026 07:52:09 +00:00
 pass  ╰ Passed through

○ Stopped recording
 warn    This plugin is in preview and may not return the correct results.
Please review the permissions and test your app before using them in production.
If you have any feedback, please open an issue at https://aka.ms/devproxy/issue.

 info    Excluding the following permissions: profile, openid, offline_access, email
 info    Evaluating application permissions for: GET /groups
 fail    Couldn't determine minimal permissions for the following URLs: -  (No permissions found.)
 info    DONE

Expected behaviour

Dev Proxy should return a list of permissions scopes that are unnecessary based on the intercepted requests.

Actual behaviour

 info    Excluding the following permissions: profile, openid, offline_access, email
 info    Evaluating application permissions for: GET /groups
 fail    Couldn't determine minimal permissions for the following URLs: -  (No permissions found.)
 info    DONE

Steps to reproduce

  1. Start dev proxy
  2. Start recording
  3. Execute requests
  4. Stop recording

Dev Proxy Version

2.3.0

Operating system (environment)

Windows

Shell

PowerShell

Configuration file

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.3.0/rc.schema.json",
  "urlsToWatch": ["https://graph.microsoft.com/*"],
  "plugins": [
    {
      "name": "GraphMinimalPermissionsGuidancePlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
      "configSection": "graphMinimalPermissionsGuidancePlugin"
    }
  ],
  "graphMinimalPermissionsGuidancePlugin": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.3.0/graphminimalpermissionsguidanceplugin.schema.json",
    "permissionsToExclude": ["profile", "openid", "offline_access", "email"]
  }
}

Additional Info

No response

Activity

  1. waldekmastykarz commented on Mar 27, 2026

    @waldekmastykarz
    Collaborator

    Thank you for reporting the issue and sorry for the snag. We'll try to repro it asap and see if we can find out what's wrong.

  2. added a commit that references this issue on Mar 28, 2026
    1379e42
  3. waldekmastykarz commented on Mar 28, 2026

    @waldekmastykarz
    Collaborator

    We've got a fix in #1606. Would it be sufficient for you if we shipped it in a beta or would you rather have it in a stable?

  4. added a commit that references this issue on Apr 9, 2026
    74d48ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions