Tenant does not have a SPO license

前端 未结 4 937
灰色年华
灰色年华 2021-01-04 21:26

I have an error while trying to use Microsoft Graph to write a script to upload an Excel file to OneDrive then read the Excel file.

I followed Microsoft documentati

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-04 22:01

    1. Are you able to access the OneDrive contents (including the Excel file) manually through browser after logging in with your account in the same tenant?

    2. If you are able to access the drive and file manually, please use Graph Explorer https://developer.microsoft.com/en-us/graph/graph-explorer to sign in using the same account and make the call to get the Drive contents. When you’re signing-in, you would be presented with a consent page listing the permissions needed to be granted. Please make a note of those permissions and check whether the permission match to those required for accessing the drive.

    3. If you do not have appropriate SPO license yet, you can try setting up a free Office-365 trial account (https://products.office.com/en-in/business/office-365-enterprise-e3-business-software) and test the APIs.

提交回复
热议问题