Skip to content

Get-ODAuthentication : A parameter cannot be found that matches parameter name 'ResourceId'. #19

Description

@Mahmoud87

Installed the module and went through the app registration but when I try to get the token I get this error.

PS C:\WINDOWS\system32> $Auth=Get-ODAuthentication -ClientId "a2xxcd-xx-4cd3-b234b-22acccsssxxx32" -AppKey "xxxxxx00032Q_l0~9xxxxxppooyumiz" -RedirectURI "http://localhost/1Drive4Business" -ResourceId "https://companyname.sharepoint.com/"

Get-ODAuthentication : A parameter cannot be found that matches parameter name 'ResourceId'.
At line:1 char:122
+ ... b32" -AppKey "xxx~i1y32Q_l0~9-Nwww12xx_7yumiz" -ResourceId "https: ...
+                                                       ~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-ODAuthentication], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Get-ODAuthentication

Am I using the redirect URL correctly? Is it mandatory to have this parameter? How to determine the correct Resource ID?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions