In this article:
This section describes how to deprovision users by submitting a CSV file to Pluralsight. By default, the process runs as a "dry run," meaning the operations to remove user licenses in Pluralsight are generated and stored but not applied. This allows you to review the data and confirm it meets your expectations. To apply the changes, set the dryRun
parameter in the URL to false. See the "Turning off Dry Run" section below for details.
API requests should be delivered to an endpoint appended to the production URL https://integrations-api.pluralsight.com
.
Section | Details |
---|---|
Endpoint | POST /deprovision |
HTTP method | POST |
Description | Submit a CSV file containing all users to be deprovisioned. By default, the deprovision process runs as a "dry run," meaning the operations to remove user licenses in Pluralsight are generated and stored but not applied. This allows you to review the data and confirm it meets your expectations. To apply the changes, set the dryRun parameter in the URL to false. See the "Turning off Dry Run" section below for details. |
Headers | Content-Type: Content-Disposition: |
Body | Provide either the |
Provision CSV file | File Name: Required CSV Headers:
Each user must have a unique |
Note: Filter out users missing id or email fields; these are required and will cause errors. Ensure that all users have unique id and email. Avoid special characters in the file (e.g., quotation marks, commas, symbols) to prevent parsing errors.
What It Does:
Default Setting:
true
(meaning changes are not applied by default)How to Use:
?dryRun=false
to the end of your endpoint URL.Example URL:
https://integrations-api.pluralsight.com/deprovision?dryRun=false
What It Does:
Default Setting:
false
(meaning the process continues without stopping even if errors occur)How to Use:
?exitOnError=true
to the end of your endpoint URL.Example URL:
https://integrations-api.pluralsight.com/deprovision?exitOnError=true
What It Does:
Default Setting:
true
(meaning users are removed from the plan)How to Use:
?removeUsers=false
to the end of your endpoint URL.Example URL:
https://integrations-api.pluralsight.com/deprovision?removeUsers=false
What It Does:
Default Setting:
false
(meaning privileges are removed)How to Use:
?retainPrivileges=true&removeUsers=false
.Example URL:
https://integrations-api.pluralsight.com/deprovision?retainPrivileges=true&removeUsers=false
Status | Message | Code |
---|---|---|
No files submitted | {"status": "No files"} | 400 |
In progress | {"status": "Processing"} | 200 |
Validation errors | {"status": "Validation Completed With Errors"} | 400 |
Deprovision errors | { "status": "Completed With Errors" } | 400 |
Success | {"status": "Completed Successfully"} | 200 |
curl
-T deprovision.csv
-X POST
-H "Authorization: Bearer [insert-your-api-key-here]"
-H 'Content-Disposition: attachment; filename="deprovision.csv"'
-H "Content-Type: text/csv"
https://integrations-api.pluralsight.com/deprovision