You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.post returns a user object which I then use. However the update method graph_client.users.by_user_id(email).patch simply returns None. Looking at the definition of the patch function
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).get method to construct the object but would prefer not to make an additional request.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.post
returns a user object which I then use. However the update methodgraph_client.users.by_user_id(email).patch
simply 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).get
method to construct the object but would prefer not to make an additional request.Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions