microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
690 stars 165 forks source link

Add parameter "Allowexternal" in cmdlet "Invoke-MgGraphDrive" #2861

Open fz0000 opened 1 month ago

fz0000 commented 1 month ago

Is your feature request related to a problem? Please describe the problem.

In Gragh Explorer I can send the request https://graph.microsoft.com/v1.0/me/drive/sharedWithMe?allowexternal=true to get the files shared with me. And the code in the Code snippets is:

Invoke-MgGraphDrive -DriveId $driveId -Allowexternal true 

But I will get the following error if I use the command:

Invoke-MgGraphDrive : A parameter cannot be found that matches parameter name 'Allowexternal'.
At line:1 char:39
+ Invoke-MgGraphDrive -DriveId $driveId -Allowexternal true
+                                       ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-MgGraphDrive], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Invoke-MgGraphDrive

Describe the solution you'd like.

We will appreciate it if you could add it. Or, if I used the incorrect cmdlet/parameter, please let me know. Thanks.

Additional context?

No response

timayabi2020 commented 1 month ago

@fz0000 thanks for reporting this issue. We are working to resolve the metadata issue.