Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Update snippets to initialise GraphServiceClient with different National Clouds

Open
#1,116 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

Open the National Clouds documentation page linked in the issue and inspect its Python snippets for GraphServiceClient initialization. Update the examples to use a TokenCredential with the appropriate authority and set graph_client.request_adapter.base_url; done means the national-cloud snippets show both settings consistently.

Written by the indexing model from the issue text.

Description

area:documentation type:enhancement

Code snippets under https://learn.microsoft.com/en-us/graph/sdks/national-clouds?view=graph-rest-1.0&tabs=python need to be updated to use a TokenCredential object with an authority set and updating the base_url of the graph client via: graph_client.request_adapter.base_url = ""

Dominant language
Python
Stars
630
Forks
96
Avg merge
15h 20m
Merged PRs (30d)
3

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.

More from microsoftgraph/msgraph-sdk-python

All issues in microsoftgraph/msgraph-sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.