Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/directorcia/office365
Browse files Browse the repository at this point in the history
  • Loading branch information
directorcia committed Jun 11, 2023
2 parents 442c973 + 4e5a838 commit 34e7df5
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
2 changes: 1 addition & 1 deletion best-practices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Best practices for configuring standalone EOP - https://docs.microsoft.com/en-us
Recommended settings for EOP and Defender for Office 365 security - https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/recommended-settings-for-eop-and-office365-atp?view=o365-worldwide
Microsoft 365 and Office 365 email migration performance and best practices - https://docs.microsoft.com/en-us/Exchange/mailbox-migration/office-365-migration-best-practices
Best practices for public folder preparation before migrations - https://techcommunity.microsoft.com/t5/exchange-team-blog/best-practices-for-public-folder-preparation-before-migrations/ba-p/1909222
How to Combat Fake Emails using SPF, DKIM, DMARC - https://www.cyber.gov.au/acsc/view-all-content/publications/how-combat-fake-emails
Order and precedence of email protection - https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/how-policies-and-protections-are-combined?view=o365-worldwide

Security
--------
Expand Down
66 changes: 66 additions & 0 deletions tms-attend-get.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
param(
[switch]$debug = $false ## if -debug parameter capture log information
)
<# CIAOPS
Script provided as is. Use at own risk. No guarantees or warranty provided.
Description - Connect to the Microsoft Graph and get meetign attendees using the Microsoft Graph
Documentation - https://blog.ciaops.com/2023/05/25/get-teams-meeting-attendees-via-powershell-and-the-microsoft-graph/
Source - https://github.com/directorcia/Office365/blob/master/tms-attend-get.ps1
Reference -
Prerequisites = 1
1. MSGraph PowerShell module installed
#>

## Variables
$systemmessagecolor = "cyan"
$processmessagecolor = "green"

$scopes = "OnlineMeetingArtifact.Read.All, OnlineMeetings.Read" # required to read meeting data

#region Change to suit environment
$tenantid = "tenant.onmicrosoft.com" # e.g. tenant.onmicrosoft.com
$meetingjoinurl = 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_MWY1YWZlNjItNmViNS11MDY4LWI5YjMtMjliYzk5MDY2YDM3%40thread.v2/0?context=%7b%22Tid%22%3a%225243d63d-7632-4d07-a77e-de0fea1ba774%22%2c%22Oid%22%3a%22b75e7296-a058-7074-acb8-6021a3dca444%22%7d'
$useremail = "[email protected]" # user who created the meeting
#endregion

Clear-Host
if ($debug) {
write-host -foregroundcolor $processmessagecolor "Script activity logged at ..\tms-attend-get.txt"
start-transcript "..\tms-attend-get.txt"
}

write-host -foregroundcolor $systemmessagecolor "Get Teams meeting attendees - start script`n"

# Connect to MSGraph
write-host -foregroundcolor $processmessagecolor "Connect to the Microsoft Graph"
Select-MgProfile beta
Connect-MgGraph -Tenant $tenantid -Scopes $scopes

# Get user GUID from email address
write-host -foregroundcolor $processmessagecolor "Get meeting creator GUID"
$userid = (get-mguser -UserId $useremail).Id

# Get the meetign id
write-host -foregroundcolor $processmessagecolor "Get meeting id"
$meetingid = Get-MgUserOnlineMeeting -Filter "JoinWebUrl eq '$meetingjoinurl'" -UserId $userid | select-object -ExpandProperty Id

# Get report info from meeting id
write-host -foregroundcolor $processmessagecolor "Get meeting report id"
$reportinfo = Get-MgUserOnlineMeetingAttendanceReport -OnlineMeetingId $meetingid -UserId $userid

# Get meeting report from report id
write-host -foregroundcolor $processmessagecolor "Get meeting report details`n"
$report = Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord -UserId $userid -OnlineMeetingId $meetingid -MeetingAttendanceReportId $reportinfo.id

# Display attendee list
write-host "Meeting attendees"
write-host "-----------------"
$report.emailaddress

write-host -foregroundcolor $systemmessagecolor "`nGet Teams meeting attendees - end script"
if ($debug) {
stop-transcript | Out-Null
}
3 changes: 3 additions & 0 deletions urls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ https://portal.atp.azure.com/ - Microsoft Defender for Identity
https://portal.azurerms.com/#/admin - Azure Information Protection portal
https://oai.azure.com/ - Azure OpenAI Studio
https://apps.azureiotcentral.com/home - IoT Central
https://oai.azure.com/portal = AI Studio
https://entra.microsoft.com - Entra admin center


## Microsoft Management Agent
Expand All @@ -134,6 +136,7 @@ https://o365.rocks/ - Tenant Availability Check
https://adoption.microsoft.com/extensibility-look-book - Microsoft 365 Extensibility look book gallery
https://lookbook.microsoft.com/ - SharePoint look book
https://feedbackportal.microsoft.com/feedback - Product feedback portal
https://download.microsoft.com/download/e/3/e/e3e9faf2-f28b-490a-9ada-c6089a1fc5b0/Product%20names%20and%20service%20plan%20identifiers%20for%20licensing.csv - SKUs

## Twitter

Expand Down

0 comments on commit 34e7df5

Please sign in to comment.