Skip to content

List_SharePoint_Sites() returns error 404 #217

@En-On-Git

Description

@En-On-Git

One of my users is experiencing an issue with this package when using the List_SharePoint_Sites() command.
The command always returns the following error:

Using authorization_code flowWaiting for authentication in browser...
Press Esc/Ctrl + C to abortAuthentication complete.Error in process_response(res, match.arg(http_status_handler), simplify) :
Not Found (HTTP 404). Failed to complete operation. Message:
Requested site could not be found.

Retrieving individual sites works as expected, and the user can retrieve their followed sites via Graph using the GET https://graph.microsoft.com/v1.0/me/followedSites endpoint via PowerShell and Graph Explorer.

Troubleshooting steps taken:

  • Re-installed the package.
  • Cleared the cached credentials via AzureAuth::clean_token_directory() and AzureGraph::delete_graph_login()
  • Tried running List_SharePoint_Sites with explicit app id of AzureR/Microsoft365R default Enterprise Registration.
  • Tried running List_SharePoint_Sites with explicit app id of a custom App Registration.
  • Tested https://graph.microsoft.com/v1.0/me/followedSites Graph endpoint via Graph Explorer.
  • Tested https://graph.microsoft.com/v1.0/me/followedSites Graph endpoint via PowerShell with the AzureR/Microsoft365R Enterprise Registration Application (Client) ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions