Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Last active July 19, 2019 00:07
Show Gist options
  • Save darrenjrobinson/6abb381a570c52bdc68a4df49e0c692a to your computer and use it in GitHub Desktop.
Save darrenjrobinson/6abb381a570c52bdc68a4df49e0c692a to your computer and use it in GitHub Desktop.
Azure AD MFA Microsoft Identity Manager Management Agent. Associated blogpost https://blog.darrenjrobinson.com/an-azure-mfa-management-agent-for-user-mfa-reporting-using-microsoft-identity-manager/
# Azure MFA API Schema
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-ID|String" -Value "f2ceedf9-888f-4313-bf97-2326f066abc3"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "mfaUser"
$obj | Add-Member -Type NoteProperty -Name "userPrincipalName|string" -Value "string"
$obj | Add-Member -Type NoteProperty -Name "isMfaRegistered|boolean" -Value $true
$obj | Add-Member -Type NoteProperty -Name "isRegistered|boolean" -Value $true
$obj | Add-Member -Type NoteProperty -Name "authMethods|string[]" -Value ("string","string")
$obj | Add-Member -Type NoteProperty -Name "isEnabled|boolean" -Value $true
$obj | Add-Member -Type NoteProperty -Name "isCapable|boolean" -Value $true
$obj | Add-Member -Type NoteProperty -Name "authMethodsCount|integer" -Value 2
$obj | Add-Member -Type NoteProperty -Name "hasAuthApp|boolean" -Value $true
$obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment