feat: Add RBAC environment roles API support#338
Merged
gjtorikian merged 8 commits intomainfrom Mar 6, 2026
Merged
Conversation
2 tasks
Contributor
Greptile SummaryThis PR adds RBAC environment role API support to the WorkOS PHP SDK with six new methods on the The implementation follows existing patterns, all six methods are covered by tests, and the changes are straightforward and correct. Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 9c0f184 |
9c0f184 to
22a8ef5
Compare
eb3d554 to
5076e17
Compare
Add environment role CRUD endpoints plus set/add permissions to the RBAC module. Also adds resource_type_slug field to Role resource. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5076e17 to
47a73b7
Compare
Migrate listPermissions and listEnvironmentRoles to use PaginatedResource from #316. Also adds pagination params to listEnvironmentRoles and restores type hint on getPermission. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Add string type hints to all RBAC role method parameters for consistency with existing permission methods. Add deleteOrganizationRole endpoint per WorkOS API docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gjtorikian
approved these changes
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
resource_type_slugfield toRoleresourceRBACmodule:createEnvironmentRole,listEnvironmentRoles,getEnvironmentRole,updateEnvironmentRole,setEnvironmentRolePermissions,addEnvironmentRolePermissionOrganizationsTestrole fixtures to includeresource_type_slugPart 2 of 3 for RBAC support. Stacked on #337.
Test plan
🤖 Generated with Claude Code