SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 994 forks source link

Bearer token not supported with the SyncSolutionToTeams operation #6584

Open waldekmastykarz opened 3 years ago

waldekmastykarz commented 3 years ago

When trying to call the SyncSolutionToTeams operation with a bearer token, you get the following error:

{
  "odata.error": {
    "code": "10005",
    "message": {
      "lang": "en-US",
      "value": "Authentication method is not allowed."
    }
  }
}

If this is by-design, we should update the docs to make it explicit that only cookie-based auth is supported.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 3 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

debi-dkrem commented 3 years ago

Has there been any resolution to this? I'm suddenly getting a similar error when trying to teamify a site:

Add-PnPTeamsTeam : {"odata.error":{"code":"10005","message":{"lang":"en-US","value":"Authentication method is not allowed."}}}

gitbrent commented 3 years ago

Has there been any resolution to this? I'm suddenly getting a similar error when trying to teamify a site:

Add-PnPTeamsTeam : {"odata.error":{"code":"10005","message":{"lang":"en-US","value":"Authentication method is not allowed."}}}

Looks like it's related to this issue.

mohandivraniya commented 3 years ago

I am facing the same error when running Add-PnPTeamsTeam command with user authentication.

PnP.PowerShell version - 1.5.0 User running command is global, SharePoint and Teams administrator User has valid SharePoint license assigned Register-PnPManagementShell command executed and admin consent for all the permissions are given

What am I missing here?

@gautamdsheth would you be able to shed some light on this issue sir?

giuleon commented 3 years ago

The bearer Token is clearly not supported for SyncSolutionToTeams, docs should be updated.