account_enabled always returns None using Python SDK .get() — even with correct permissions #1301
sumeet1495
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'm using the Microsoft Graph Python SDK and running the following code:
detailed_user = await client.users.by_user_id("user_id").get()
print(detailed_user.account_enabled)
Even though my app has all the necessary application permissions (User.ReadWrite.All, Directory.ReadWrite.All, etc.) and admin consent is granted, the field account_enabled always returns None.
Is this a known limitation of the Python SDK?
Beta Was this translation helpful? Give feedback.
All reactions