This PowerShell script allows to export the users of a Workplace instance by using SCIM API.
-
Create a new Custom Integration in the Workplace Admin Panel: Create a custom Integration.
This requires at least "Manage Accounts" permissions. Take note of the Access Token. -
Create a file named
accessToken.js
with the following content:{ "accessToken" : "YOUR-ACCESS-TOKEN" }
-
Run the script by passing the
accessToken.js
file as input:./exportUsersSCIM.ps1 -WPAccessToken accessToken.js -$SCIMPageSize 100 -WPExportedUsers ./PATHTOEXPORTFILE-XLSX
Here are the details of the passed params:
Parameter Description Type Required WPAccessToken The path for the JSON file with the access token String Yes ParallelGrade The # of threads on which the export process will span Int No -
A file named
workplace_employees_info_[yyyy-mm-dd-HH_mm].xlsx
will be created in the same folder where your run the script. It will populate some columns with values from the SCIM API calls (Full Name
,Email
,User Id
,Job Title
,Department
,Division
,Status
,Claimed
,Claimed Date
,Invited
,Invited Date
,Manager Employee ID
,Manager Full Name
)
Hi,
I don't know if you are till active here, but hope to hear from you.
First, thank you for this post. This has helped me.
However, I am intresting in knowing if I it is possible to add on this code to collect more information.
The case:
On workplace, I know I can export a excel file of users containing insight such as "Active last month", "Active Last Week" etc.
In the code provided above, i want to add to collect the rest of the information.
Do you have a code or can help me where I can find what I am looking for. I am new to code and hope to hear from you.
Tim