Skip to content

Enhancement: Add extra resources for util accesstoken get #4669

@milanholemans

Description

@milanholemans

Currently when I want an accesstoken for Graph I have to run m365 util accesstoken get --resource https://graph.microsoft.com. For SharePoint I can just run m365 util accesstoken get --resource sharepoint. To me it would be useful if we add another named resource for Graph so you can use m365 util accesstoken get --resource graph to get a graph token.

Also noticed that we support sharepoint as resource value, but this isn't included in the docs. The only way to know this if you look at one of the examples. Therefore I also suggest that we also add these named resources to the description of the resource option in the docs.

Suggested resources to add:

Resource Endpoint
graph https://graph.microsoft.com

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions