powershell - Azure AD - 如何自动访问全局管理员角色到用户角色,以便从用户角色 OneDrive 访问 "Access files"?

标签 powershell azure onedrive

我正在努力验证是否有一种方法可以自动实现全局管理员对其他用户角色帐户的Azure AD访问同一租户授予对 OneDrive 的访问权限。

如果您导航至portal.office.com然后单击用户名,这将显示该用户的一些设置。我所指的设置位于 OneDrive 设置 的下拉菜单下(参见附图)。

enter image description here

有没有办法通过某些 PowerShell cmdlet 自动执行此过程?

最佳答案

已解决

我发现一篇文章展示了如何运行 PowerShell通过SharePoint Online Management Shell命令

教程链接包含设置先决条件部分:Easy Manage Multiple Office 365 Tenants with Windows PowerShell

实际PowerShell命令:

$site = Get-SPOSite -Identity https://mydemo-my.sharepoint.com/personal/sarad_mydemo_onmicrosoft_com Set-SPOUser -Site $site.Url -LoginName <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d5b4b1b8bcbb95b8acb1b0b8bafbbabbb8bcb6a7baa6bab3a1fbb6bab8" rel="noreferrer noopener nofollow">[email protected]</a> -IsSiteCollectionAdmin $true

教程:How to Get Administrative Access to the OneDrive for Business Environment for a User

关于powershell - Azure AD - 如何自动访问全局管理员角色到用户角色,以便从用户角色 OneDrive 访问 "Access files"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42399076/

相关文章:

powershell - 以字符串形式获取注册表值的方法比 (Get-ItemProperty $key $valueName)._VALUENAME_?

powershell - Powershell通过复制最后三个字符来重命名文件

azure - azure webjob .Net Core 2.0 的应用程序见解

microsoft-graph-api - 如何使用 Microsoft Graph 将 Office 文件转换为 PDF

excel - 使用 Powershell 读取 Excel 数据并写入变量

powershell - 如何制作包含今天日期的文件夹,然后将文件复制到其中?

regex - 我可以使用数据工厂数据流将列文本拆分为数组吗?

azure - 从 Azure AD 生成 token 失败并出现错误 AADSTS9002326

microsoft-graph-api - 在微软图中递归列出所有文件

windows-phone-7 - Live Connect API - 创建子文件夹