Skip to content

feat: add WorkOS environment role support#26

Merged
sionsmith merged 1 commit into
mainfrom
feat/environment-roles-25
Jun 25, 2026
Merged

feat: add WorkOS environment role support#26
sionsmith merged 1 commit into
mainfrom
feat/environment-roles-25

Conversation

@sionsmith

Copy link
Copy Markdown
Contributor

Summary

  • add WorkOS environment role client methods for list/create/get/update and permission replacement
  • add workos_environment_role resource with import-by-slug support and authoritative permissions management
  • add workos_environment_role data source lookup by slug or ID
  • add docs, examples, README import guidance, and changelog entry

WorkOS API behavior

WorkOS currently exposes environment-role create/read/update/list plus add/set permissions, but not a public environment-role delete endpoint. The provider therefore rejects destroy/replacement plans for workos_environment_role instead of silently orphaning the remote role.

Verification

  • go test ./...
  • go build ./...
  • git diff --cached --check

Closes #25

@sionsmith
sionsmith force-pushed the feat/environment-roles-25 branch from 7c7c82f to 5a75014 Compare June 25, 2026 16:52
@sionsmith
sionsmith force-pushed the feat/environment-roles-25 branch from 5a75014 to 068d22b Compare June 25, 2026 17:05
@sionsmith
sionsmith merged commit 2f9a854 into main Jun 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature-request] support environment level roles

1 participant