Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'find-MgGraphCommand -Uri ' not working for /me endpoints #2306

Closed
CarolKigoonya opened this issue Sep 19, 2023 · 2 comments · Fixed by #2317
Closed

'find-MgGraphCommand -Uri ' not working for /me endpoints #2306

CarolKigoonya opened this issue Sep 19, 2023 · 2 comments · Fixed by #2317
Assignees
Labels
Milestone

Comments

@CarolKigoonya
Copy link

Describe the bug
There is a customer complaint that they cannot find the permissions for a /me endpoint using find-MgGraphCommand -Uri. On testing, the /me endpoints are currently not working.

To Reproduce
Steps to reproduce the behavior:

  1. Run find-MgGraphCommand -Uri '/me/events' or find-MgGraphCommand -Uri '/me/mailboxSettings'
  2. Error thrown is
    find-MgGraphCommand : URI ' https://graph.microsoft.com/v1.0/me/mailboxSettings' in is not valid or is not currently supported by
    the SDK. Ensure the URI is formatted correctly and try again.
  3. Using find-MgGraphCommand -command Get-MgUserMailboxSetting works

Expected behavior
expected to return the command, URI and permissions

Debug Output
find-MgGraphCommand : URI ' https://graph.microsoft.com/v1.0/me/events' in is not valid or is not currently supported by the SDK.
Ensure the URI is formatted correctly and try again.
At line:1 char:1

  • find-MgGraphCommand -Uri '/me/events' -Debug
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Find-MgGraphCommand
    
    
@ddyett
Copy link
Contributor

ddyett commented Sep 21, 2023

should we expand me to users/user-id in these cases. find-MgGraphCommand -Uri '/users/{id}/events/'

@CarolKigoonya
Copy link
Author

Yes we should

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants