microsoftgraph / microsoftgraph/msgraph-sdk-python

Example in README has the wrong import for `GraphServiceClient`

Open Beginner friendly
#1,570 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:waiting-for-triage type:bug
Dominant language
Python
Stars
630
Forks
96
Avg merge
15h 20m
Merged PRs (30d)
3

Description

Describe the bug

In section 2.3, the README has
from msgraph import GraphServiceClient
whereas
from msgraph.graph_service_client import GraphServiceClient
seems to work

Expected behavior

Please clarify or fix README

How to reproduce

install msgraph sdk
In a python repl
import msgraph
dir(msgraph) # this will show no GraphServiceClient
dir(msgraph.graph_service_client) will show GraphServiceClient

SDK Version

1.61.0

Latest version known to work for scenario above?

No response

Known Workarounds

use from msgraph.graph_service_client import GraphServiceClient

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the README and inspect section 2.3, comparing the documented import with the working import from msgraph.graph_service_client. Update the example so it exposes GraphServiceClient correctly, then verify the documented command in a Python REPL using the msgraph SDK version described.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
90/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.