山口屋~活動日誌~

私生活で主な出来事をピックアップ

Viva Engage コミュニティ作成 PowerShell Yammer

2024-03-11 23:23:10 | パソコン
Viva Engage(旧 Yammer)のコミュニティ作成をPowerShellで行うために調査中。

Microsoft Learn:Create community
Microsoft Tech Community:Introducing the Community Creation API for Viva Engage on Microsoft Graph Beta
Office 365 for IT Pros:Creating Viva Engage Communities with the Graph API
Linkedin:How to get your Viva Engage (Yammer) related M365 Groups?

<Viva Engage(旧 Yammer)のグループを作成>
一応作成されるのだが、Entra ID のグループリンク欄に Yammer がなかったり、自分以外を所有者に指定するとメンバーに入らないなど、普通に作成するのと同じにはならない。
$VivaCommunityParameters = @{"displayName" = "Viva Engage Technical Discussions";"description" = "A community where everyone gets together to discuss the technology that drives Viva Engage and its communities.";"privacy" = "Private";"owners@odata.bind"=@("https://graph.microsoft.com/beta/users('" + $userid + "')")}
$VivaCommunityBody = $VivaCommunityParameters | ConvertTo-Json
$Uri = "https://graph.microsoft.com/beta/employeeExperience/communities"
Invoke-MgGraphRequest -Uri $Uri -Method POST -Body $VivaCommunityBody -StatusCodeVariable "Status"

<Viva Engage(旧 Yammer)のグループを確認してコミュニティサイトURLを取得>
Get-UnifiedGroup | Where-Object {$_.GroupSku -eq "Yammer"} | Foreach-Object {if($_.ServiceEndpointUris.Count -gt 0) {$_.ServiceEndpointUris = $_.ServiceEndpointUris.replace("Yammer.FeedURL:", ""); $_ | Select-Object ExternalDirectoryObjectId,ServiceEndpointUris}}
コメント    この記事についてブログを書く
  • Twitterでシェアする
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする
« Base64 デコード エンコード ... | トップ | Teams チャット 容量 »
最新の画像もっと見る

コメントを投稿

パソコン」カテゴリの最新記事