Skip to content

Instantly share code, notes, and snippets.

View darrenjrobinson's full-sized avatar

Darren Robinson darrenjrobinson

View GitHub Profile
import-module UniversalDashboard.Community
import-Module UniversalDashboard.UDFinancialChart
Get-UDDashboard | Stop-UDDashboard
$Theme = New-UDTheme -Name "darrenjrobinson" -Definition @{
'.dropdown-content' = @{
'min-width' = '450px'
}
'.btn-floating' = @{
# Document IdentityNow Email Templates Configuration
import-module SailPointIdentityNow
Get-IdentityNowOrg
Set-IdentityNowOrg -orgName 'yourOrgName'
$orgName = (Get-IdentityNowOrg).'Organisation Name'
$utime = [int][double]::Parse((Get-Date -UFormat %s))
# Get All Notification Templates
$getEmailTemplate = Invoke-IdentityNowRequest -uri "https://$($orgName).api.identitynow.com/cc/api/emailTemplate/list?_dc=$($utime)&filter=%7Bproperty%3A%20%22name%22%2C%20operation%3A%20%22EQ%22%2C%20value%3A%22Pending%20Access%20Request%20Cancelled%22%7D" -method get -headers Headersv3_JSON
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
}