Search code examples
apirestoffice365onedrive

Calling Office 365 APIs on behalf of another user


I am developing a web application for Office 365 for business. I authorize it with my admin account. So I have access token for calling REST APIs on behalf of admin user.

Is there a way to call APIs on behalf of another user inside my organization? Or is there any other way to get the list of another user's files in OneDrive?


Solution

  • You need to get the app only token to access data belonging to other users. Please follow the steps here to register the app and then follow these to get the required token