microsoftgraph / msgraph-cli-archived

The Microsoft Graph CLI repository has moved. This repository is now an archive.
https://github.com/microsoftgraph/msgraph-cli
Other
44 stars 9 forks source link

No concept of /me #111

Closed MIchaelMainer closed 3 years ago

MIchaelMainer commented 3 years ago

Describe the bug /me is a fundamental concept in Microsoft Graph. We need to support singletons, and this is the most important one to support as it is an alias for /users/user.

This is especially important as the current app is a delegate permission only app.

AB#9404

jobala commented 3 years ago

Do you mean a cli command that maps to /me endpoint ? It would be nice to add as part of this issue how it works in Powershell.

MIchaelMainer commented 3 years ago

Yes. PowerShell doesn't support /me directly.

Customers can however use Invoke-MgGraphRequest -Uri "/me" to get "me" and pass the Id to any Get-MgUser* command. We should consider an equivalent to Invoke-MgGraphRequest so that we can make arbitrary calls. I will close this issue and open a feature request for arbitrary request.