Skip to content

Instantly share code, notes, and snippets.

View 10mnor's full-sized avatar

10mnor

  • Crayon As
  • Oslo, Norway
View GitHub Profile
@panreel
panreel / exportUsersSCIM.ps1
Last active October 22, 2020 13:04
Export Users from a Workplace instance by using SCIM API
param(
[Parameter(Mandatory=$true, HelpMessage='Path for your Workplace access token in .json format {"accessToken" : 123xyz}')] [string]$WPAccessToken,
[Parameter(Mandatory=$false, HelpMessage='Page size for SCIM requests. Defaults to 100.')] [int]$SCIMPageSize = 100
)
$defJobs = {
$origin = New-Object -Type DateTime -ArgumentList 1970, 1, 1, 0, 0, 0, 0
function Get-Status {
If(-Not $_.active) {return "Deactivated"}