Skip to content

Account Enabled always returns None using Python SDK .get() — even with correct permissions #1302

Description

@sumeet1495

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions