powershell icon indicating copy to clipboard operation
powershell copied to clipboard

Update Request-PnPAccessToken.md

Open PowershellScripts opened this issue 3 years ago • 1 comments

Type

  • [ ] Bug Fix
  • [ ] New Feature
  • [ ] Sample
  • [x] Parameter description

Related Issues?

N/A

What is in this Pull Request ?

Not really sure about the -Resource parameter. It doesn't seem to do much. Is it there for compatibility reasons? I took the description from https://pnp.github.io/powershell/cmdlets/Get-PnPAccessToken.html

PowershellScripts avatar Jul 21 '22 06:07 PowershellScripts

Hi @PowershellScripts , thank you so much for this and bunch of other PRs. Resource is not a valid parameter. The available parameters are ResourceTypeName or ResourceTypeUrl

ResourceTypeName has 3 available enum values - ARM, SharePoint and Graph ResourceTypeUrl is a string parameter which can be used for custom APIs or even URLs like https://graph.microsoft.com

gautamdsheth avatar Aug 10 '22 07:08 gautamdsheth

Thanks @PowershellScripts

KoenZomers avatar Sep 05 '22 22:09 KoenZomers