Users patch returning None on success #897
Unanswered
Matt Langley (tarqu1n)
asked this question in
Q&A
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 I am pretty new to the msgraph sdk and I am doing some provisioning/deprovisioning/updating of users.
The creation method
graph_client.users.postreturns a user object which I then use. However the update methodgraph_client.users.by_user_id(email).patchsimply returnsNone. Looking at the definition of the patch functionmsgraph-sdk-python/msgraph/generated/users/item/user_item_request_builder.py
Line 168 in 416fccc
I can see that the function docs specify that the user should be returned. Is this a bug or am I missing some optional request configuration param that will enable the user object return?
I can use the
graph_client.users.by_user_id(email).getmethod to construct the object but would prefer not to make an additional request.Many thanks!
All reactions