I am Working on python script to backup files from users office 365 onedrive. I use Graph API to get an object list from users onedrive. My query for getting all child objects from the root drive of a user returns the expected values in Graph Explorer. When using the same query in the python script Graph returns an empty value. Other queries in the script are returning correct values.
Example of query returning correct value: https://graph.microsoft.com/v1.0/users/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/drives Script extracts drive-id from return value to get list of child-objects from next query: https://graph.microsoft.com/v1.0/users('xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx')/drives('xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx')/root/children
Returns empty value from API call but returns correct value from Graph explorer.
Any suggestions?