microsoftgraph / microsoftgraph/msgraph-sdk-python

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.

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

Description

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 = ""

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 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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.