Get a User's SSO ID
Look up a user's SSO ID so you can map a Wyzed user to a user in your own
identity provider. The SSO ID is None if the user has no SSO connection.
API endpoints:
note
This example assumes you already have an access_token — see
Authentication.
import httpx
user_id = 123
response = httpx.get(
f"https://your-account.wyzed.com/v3_user/tenants/{tenant_id}/users/{user_id}/sso",
headers={
"Authorization": f"Bearer {access_token}",
},
)
response.raise_for_status()
data = response.json()
# data["sso_info"] is None if the user has no SSO connection.
if data["sso_info"]:
print(f"User {user_id}'s SSO ID: {data['sso_info']['sso_id']}")
else:
print(f"User {user_id} does not have an SSO connection")