Using cua with windows.net

Python integration

Install
pip install cua
Quick start
import cua

# Use an OAuth2 access token
client = cua.Client(access_token="YOUR_ACCESS_TOKEN")
Gets the details for the currently logged-in user.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://graph.windows.net/{tenantID}/me
Gets list of users for the current tenant.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://graph.windows.net/{tenantID}/users
Gets list of groups for the current tenant.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://graph.windows.net/{tenantID}/groups
SDK on GitHub 📄 API Docs
SDK
cua
Python
API
windows.net
windows.net:graphrbac
At a glance
Language Python
Endpoints56
Base URLhttps://graph.windows.net