Getting Started
Overview
With the System for Cross-domain Identity Management (SCIM) API, you can perform Access Management activities within the StackSpot Portal using HTTP methods (GET, POST, PUT, PATCH, DELETE).
- API Version: 1.0
- Host: http://auth.stackspot.com/
- Base Path: /
Requirements
-
Due to authentication restrictions, direct API submission is only available for Enterprise accounts.
-
Authenticate to use the script.
Follow the steps to authenticate on the Service Credentials page.
Activate the following permissions: scim_use
Contact your account administrator if you are unable to create a Service Credential.
- Copy the 'client id', 'client key', and 'realm' fields to use as environment variables (the first two must be secrets) or in the curl example at the bottom of the page in the 'how to use' section. You will not be able to view them again.
danger
If you lose any of them, revoke the credential and create a new one.
- The following examples assume the access token is set as the
JWTenvironment variable. You can extract this from thecurlauthentication with thejqcommand to get the value for theaccess_tokenkey from the returned JSON, then save it as an environment variable using theexportcommand, like this:
export JWT=$(curl -s "https://idm.stackspot.com/$REALM/oidc/oauth/token" -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=client_credentials' -d "client_id=$CLIENT_ID" -d "client_secret=$CLIENT_KEY" | jq -r '.access_token')