Title: Account Enabled always returns None using Python SDK .get() — even with correct permissions · Issue #1302 · microsoftgraph/msgraph-sdk-python · GitHub
Open Graph Title: Account Enabled always returns None using Python SDK .get() — even with correct permissions · Issue #1302 · microsoftgraph/msgraph-sdk-python
X Title: Account Enabled always returns None using Python SDK .get() — even with correct permissions · Issue #1302 · microsoftgraph/msgraph-sdk-python
Description: 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 per...
Open Graph Description: 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 a...
X Description: 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) Ev...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-python/issues/1302
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Account Enabled always returns None using Python SDK .get() — even with correct permissions","articleBody":"Hi All,\n\nI'm using the Microsoft Graph Python SDK and running the following code:\n\ndetailed_user = await client.users.by_user_id(\"user_id\").get()\nprint(detailed_user.account_enabled)\n\n\nEven 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.\n\nIs this a known limitation of the Python SDK?","author":{"url":"https://github.com/sumeet1495","@type":"Person","name":"sumeet1495"},"datePublished":"2025-07-23T13:03:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1302/msgraph-sdk-python/issues/1302"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:651a0e13-9302-41e3-d956-b0ef2f24b397 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B92C:9346A:737FC:980A6:696951CA |
| html-safe-nonce | 39c809502e998b584029be7b58f623212c715e92b177a9f9dcfef4d09563be39 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTJDOjkzNDZBOjczN0ZDOjk4MEE2OjY5Njk1MUNBIiwidmlzaXRvcl9pZCI6IjQxMDA4NjgxMjIxMTUzOTYwNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6bde109f8cb423631b284ca70662f8a159610bf3b1d7dd3fee7e8dc1ba27a738 |
| hovercard-subject-tag | issue:3256317103 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-python/1302/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1675e033e3bd5bd8eabceb9302df19d0a4db5124113613f9998f207ec2ede1dd/microsoftgraph/msgraph-sdk-python/issues/1302 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1675e033e3bd5bd8eabceb9302df19d0a4db5124113613f9998f207ec2ede1dd/microsoftgraph/msgraph-sdk-python/issues/1302 |
| og:image:alt | 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 a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sumeet1495 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-python git https://github.com/microsoftgraph/msgraph-sdk-python.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 534665999 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 534665999 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width