Migrate Yammer scripts to Microsoft Graph, rename to Engage, and fix Insights script bugs#1
Merged
Merged
Conversation
…e bug - Replace per-user Get-MgUserManager/Get-MgUser calls with Microsoft Graph batch requests (20 users per call) to resolve manager UPNs, cutting round-trips ~20x and avoiding timeouts/throttling on tenants with thousands of licensed users. - Add 429 retry/backoff handling for throttled batch requests. - Add progress indicator during manager resolution. - Fix output filename mismatch: script now writes and reports the same file, InsightsLicensedUsers.csv. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
🛰️ PR Sweeper reportRisk: 🟢 LOW · Security gate: ✅ passing · Files: 2 🔒 Automated guardrails (authoritative)No secret, PII, file-policy, or scope issues detected. ✅ 🤖 Dual-model AI review (advisory)Deep-reasoning reviewer —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Viva Engage / Yammer script migration
Delete-EngageGroups(formerlyDelete-YammerGroups)Add-EngageGroupAdmins(formerlyAdd-YammerGroupAdmins)Get-EngageGroupInfo(formerlyGet-YammerGroupInfo) — droppedLastMessageAt(no Graph equivalent); new columnsCommunityId/GroupId/GroupName/MemberCount/GroupAdminsDelete-EngageUsers(formerlyDelete-YammerUsers) — scope change: now removes a user from one specified group per CSV row via Graph, instead of deleting the Yammer account tenant-wide (no Graph equivalent for full account deletion exists). New CSV format:GroupID+Email.-IncludeExternalNetworksremoved per MC1230453):Export-EngageNetworkData(formerlyExport-YammerNetworkData)Export-EngageFiles(formerlyExport-YammerFiles)Delete-AllCommunityPosts— added a README/script callout explaining the message-content Graph gap; existing MSAL.PS + Entra app + delegatedaccess_as_userauth already satisfies the July 2025 compliance requirement.Other fixes
Get-AllInsightsLicensedUsers.ps1: replaced per-userGet-MgUserManager/Get-MgUsercalls (2 serial API calls × every user) with Microsoft Graph$batchrequests (20 users/call), added 429 retry/backoff and a progress indicator — fixes timeouts/throttling on tenants with thousands of licensed users. Also fixed an output filename mismatch (EntraUsersExport.csvvs. the reportedInsightsLicensedUsers.csv).Testing
Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com