If you are using the graph API to get drive items in OneDrive, follow this process:
- Grant your app the
Files.ReadWrite.All
application permission and grant admin consent. - Request an access token using the daemon-based client credentials flow, as you are doing now.
- Call the
GET /drives/{drive-id}/items/{item-id}
API to get your image.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.