Skip to content

Instantly share code, notes, and snippets.

@SafeEval
Created August 27, 2024 20:49
Show Gist options
  • Save SafeEval/48e3647f9eb3d5ca89c83288298304f1 to your computer and use it in GitHub Desktop.
Save SafeEval/48e3647f9eb3d5ca89c83288298304f1 to your computer and use it in GitHub Desktop.
Show the HCP Terraform (Terraform Cloud) profile information for a user with a given token
#!/bin/bash
curl \
--header "Authorization: Bearer $TFC_TOKEN" \
--header "Content-Type: application/vnd.api+json" \
"https://app.terraform.io/api/v2/account/details"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment