如何使用Microsoft图形API启用驱动器? [英] How to enable drive using Microsoft graph API?
本文介绍了如何使用Microsoft图形API启用驱动器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
除非用户在浏览器上打开他的onedrive帐户,否则REST用于驱动器的API返回404"未找到用户的mysite。"如何使用API启用驱动器
访问?
推荐答案
这是一个使用CSOM和PowerShell的解决方法供您参考,你可以查看以下链接了解详情。
https:/ /technet.microsoft.com/en-SG/library/dn800987.aspx?f=255&MSPPError=-2147217396
<#
.SYNOPSIS
This script adds an entry for each user specified in the input file
into the OneDrive provisioning queue
.DESCRIPTION
This script reads a text file with a line for each user.
Provide the User Principal Name of each user on a new line.
An entry will be made in the OneDrive provisioning queue for each
user up to 200 users.
.EXAMPLE
.\BulkEnqueueOneDriveSite.ps1 -SPOAdminUrl https://contoso-admin.sharepoint.com -InputfilePath C:\users.txt
.PARAMETER SPOAdminUrl
The URL for the SharePoint Admin center
https://contoso-admin.sharepoint.com
.PARAMETER InputFilePath
The path to the input file.
The file must contain 1 to 200 users
C:\users.txt
.NOTES
This script needs to be run by a SharePoint Online Tenant Administrator
This script will prompt for the username and password of the Tenant Administrator
#>
param
(
#Must be SharePoint Administrator URL
[Parameter(Mandatory =
true)]
[ValidateNotNullOrEmpty()]
[string]
true)] [ValidateNotNullOrEmpty()] [string]
SPOAdminUrl,
[参数(强制性=
SPOAdminUrl, [Parameter(Mandatory =
这篇关于如何使用Microsoft图形API启用驱动器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文