Skip to content

Instantly share code, notes, and snippets.

@isvargasmsft
Last active October 12, 2023 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isvargasmsft/b682216a1d01e1ad49f21463ba5c0c97 to your computer and use it in GitHub Desktop.
Save isvargasmsft/b682216a1d01e1ad49f21463ba5c0c97 to your computer and use it in GitHub Desktop.
Request builder pattern for Python SDK
client = GraphServiceClient(credentials=credential, scopes=scopes)
# GET /users/{id | userPrincipalName}
async def get_user():
user = await client.users.by_user_id('userPrincipalName').get()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment