无法为 Office 组和安全组(通过 Azure AD Connect 创建的组)中的大量用户添加 Teams App

Unable to add Teams App for Bulk of users in Office group and Security group (groups created via Azure AD Connect)

无法为 Office 组或安全组(通过 Azure AD Connect 创建的组)的批量用户添加 Teams App

我使用下面的 API 将 Teams 应用程序(侧加载团队应用程序)添加到 Office group/Security 组中的一组用户。

与特定用户配合良好。另外请问这个 api 是否适用于 AD 组?

使用过图形浏览器。

POST https://graph.microsoft.com/beta/users/{id}/teamwork/installedApps 内容类型:application/json

{ "teamsApp@odata.bind":"https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" }

错误:

"error":{ "code": "NotFound", "message": "Unable to fetch license for user 'some GUID'.", "innerError":{ "request-id": "some GUID", "date":“2020-04-28T15:00:00”

为组中的用户分配自定义应用设置策略

1.Install-模块-名称 AzureAD

  1. /*Skype for Business Online, Windows PowerShell Module 可以下载安装*/

  2. 导入模块 SkypeOnlineConnector

    $userCredential = Get-Credential $sfbSession = New-CsOnlineSession -Credential $userCredential Import-PSSession $sfbSession

  3. connect-AzureAD -Credential $userCredential

  4. $group = Get-AzureADGroup -SearchString "TeamsApp"

  5. $members = Get-AzureADGroupMember -ObjectId $group.ObjectId -所有 $true | Where-Object {$_.ObjectType -eq "User"}

  6. $会员 | ForEach-Object { Grant-CsTeamsAppSetupPolicy -PolicyName "Teams App Policy Test" -Identity $_.UserPrincipalName}

Skype for Business Online 安装文件,Windows PowerShell 模块 https://www.microsoft.com/en-us/download/details.aspx?id=39366

参考

https://docs.microsoft.com/en-us/microsoftteams/teams-app-setup-policies

https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-overview

https://docs.microsoft.com/en-us/office365/enterprise/powershell/connect-to-all-office-365-services-in-a-single-windows-powershell-window

https://docs.microsoft.com/en-us/skypeforbusiness/set-up-your-computer-for-windows-powershell/set-up-your-computer-for-windows-powershell

https://docs.microsoft.com/en-us/office365/enterprise/powershell/manage-skype-for-business-online-with-office-365-powershell