Skip to content

Instantly share code, notes, and snippets.

View darrenjrobinson's full-sized avatar

Darren Robinson darrenjrobinson

View GitHub Profile
import-module SailPointIdentityNow
Get-IdentityNowOrg
Set-IdentityNowOrg -orgName 'yourOrgName'
# Document IdentityNow Security Configuration
$orgName = (Get-IdentityNowOrg).'Organisation Name'
# Output Path and Image
$reportImagePath = "C:\Reports\SailPoint IdentityNow 240px.png"
Open High Close Low Volume Date
1.61 1.615 1.61 1.595 5272329 09-01-2017
1.61 1.61 1.59 1.585 4594488 10-01-2017
1.585 1.6 1.59 1.58 3310098 11-01-2017
1.6 1.605 1.585 1.58 2315660 12-01-2017
1.59 1.59 1.585 1.575 2214042 13-01-2017
1.59 1.597 1.59 1.58 3339078 16-01-2017
1.585 1.59 1.585 1.565 4616138 17-01-2017
1.59 1.59 1.56 1.56 7222720 18-01-2017
1.56 1.58 1.57 1.55 6027051 19-01-2017
# Document IdentityNow Source Configuration
# Get Source from SailPoint IdentityNow Module Config
$orgName = (Get-IdentityNowOrg).'Organisation Name'
$IDNSources = Get-IdentityNowSource
# Report SailPoint Logo Image
$reportImagePath = "C:\Reports\IdentityNow Source Reports\SailPoint IdentityNow 240px.png"
# Report Output Folder
$ReportOutputPath = "C:\Reports\IdentityNow Source Reports"
if ($IDNSources) {
@darrenjrobinson
darrenjrobinson / Set SailPointIdentityNow PowerShell Module Credentials.ps1
Last active October 21, 2019 00:44
Configure SailPointIdentityNow PowerShell Module Credentials v2 and v3 for use with the SailPoint IdentityNow PowerShell Module. Associated blogpost https://blog.darrenjrobinson.com/generate-sailpoint-identitynow-v2-v3-api-credentials/
Import-Module SailPointIdentityNow
$orgName = "YOUR_ORG"
Set-IdentityNowOrg -orgName $orgName
# IdentityNow Admin User
$adminUSR = "YOUR_ADMIN_USER"
$adminPWD = 'YOUR_ADMIN_USER_PASSWORD'
$adminCreds = [pscredential]::new($adminUSR, ($adminPWD | ConvertTo-SecureString -AsPlainText -Force))
# IdentityNow Orgname
$orgName = "yourOrgName"
# IdentityNow Admin User
$adminUSR = [string]"YourAdminAccount".ToLower()
$adminPWDClear = 'yourAdminPassword'
# Generate the password hash
# Requires Get-Hash from PowerShell Community Extensions (PSCX) Module
# https://www.powershellgallery.com/packages/Pscx/3.2.2
@darrenjrobinson
darrenjrobinson / import.ps1
Last active August 29, 2019 02:55
Microsoft Identity Manager Granfeldt PowerShell MA Workday Import Script (Multi-Threaded). Associated blogpost https://blog.darrenjrobinson.com/multi-threading-granfeldt-powershell-management-agent-imports/
param (
[string]$Username,
[string]$Password,
$Credentials,
$OperationType,
[bool] $usepagedimport,
$pagesize
)
$pwd = ConvertTo-SecureString $Password -AsPlainText -Force
@darrenjrobinson
darrenjrobinson / ChatOps-for-MIM-Teams.ps1
Last active August 27, 2019 01:39
ChatOps for Microsoft Identity Manager - Teams Configuration and Start Script. https://blog.darrenjrobinson.com/chatops-for-microsoft-identity-manager/
# Install Poshbot PowerShell Module if it doesn't already exist
if (-not (Get-Module -Name "Poshbot")) {
install-module Poshbot
}
# Install LithnetRMA PowerShell Module if it doesn't already exist
if (-not (Get-Module -Name "LithnetRMA")) {
install-module LithnetRMA
}
@darrenjrobinson
darrenjrobinson / ChatOps-for-MIM-Slack.ps1
Last active August 27, 2019 01:40
ChatOps for Microsoft Identity Manager - Slack Configuration and Start Script. Associate blogpost https://blog.darrenjrobinson.com/chatops-for-microsoft-identity-manager/
# Install Poshbot PowerShell Module if it doesn't already exist
if (-not (Get-Module -Name "Poshbot")) {
install-module Poshbot
}
# Install LithnetRMA PowerShell Module if it doesn't already exist
if (-not (Get-Module -Name "LithnetRMA")) {
install-module LithnetRMA
}
# 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
param (
$Username,
$Password,
$OperationType,
[bool] $usepagedimport,
$pagesize,
$Credentials
)
$DebugFilePath = "C:\Program Files\Microsoft Forefront Identity Manager\2010\Synchronization Service\Extensions\AzureMFA\Debug\mfaUsersImport.txt"