Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.24k stars 214 forks source link

Expose the functions "Get-AccessToken" and "Get-AccessTokenWithRefreshToken" from AccessToken.ps1 #26

Closed rchan-cjj closed 2 years ago

rchan-cjj commented 2 years ago

These functions could be exposed to facilitate scripting. For instance, the user could specify the resource and the clientID with Get-AADIntAccessToken -Resource "https://graph.microsoft.com" -ClientId "d3590ed6-52b3-4102-aeff-aad2292ab01c" to use the official Microsoft Office client to get an access token for MS Graph, with the permissions Mail.ReadWrite, Files.ReadWrite.All and Group.ReadWrite.All.

meazou75 commented 2 years ago

Totaly a need on my side !