Add group provisioning support via Temporal Cloud API#77
Open
c1-dev-bot[bot] wants to merge 1 commit intomainfrom
Open
Add group provisioning support via Temporal Cloud API#77c1-dev-bot[bot] wants to merge 1 commit intomainfrom
c1-dev-bot[bot] wants to merge 1 commit intomainfrom
Conversation
- Add group resource type with TRAIT_GROUP for syncing user groups - Implement group membership provisioning (add/remove members) - Support listing groups, group members, and membership entitlements - Update namespace grants to support group-based namespace access - Add Grant/Revoke for group namespace permissions via SetUserGroupNamespaceAccess API - Support all three group types: Cloud, Google, and SCIM groups
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
Adds group provisioning support to the Temporal Cloud connector, enabling sync and management of user groups via the Temporal Cloud Groups API.
Changes
New
groupresource type (pkg/connector/groups.go): Syncs all user groups (Cloud, Google, SCIM types) with full membership managementList(): Fetches all user groups viaGetUserGroupsAPI with paginationEntitlements(): Exposes a "member" assignment entitlement per groupGrants(): Lists group members viaGetUserGroupMembersAPI with paginationGrant(): Adds users to groups viaAddUserGroupMemberAPIRevoke(): Removes users from groups viaRemoveUserGroupMemberAPIGroup namespace access (
pkg/connector/namespaces.go): Groups can now be granted/revoked namespace permissionsSetUserGroupNamespaceAccessAPI for group namespace permissionsHelper functions (
pkg/connector/helpers.go): AddedprotoUserGroupToResourceand grant creation helpers for groupsResource type registration (
pkg/connector/resource_types.go,pkg/connector/connector.go): Registered the new group resource type and builderGroup Types Supported
All three Temporal Cloud group types are synced:
API Methods Used
GetUserGroups/GetUserGroup- List and fetch groupsGetUserGroupMembers- List group membershipAddUserGroupMember/RemoveUserGroupMember- Manage membershipSetUserGroupNamespaceAccess- Manage group namespace permissionsTest plan
Automated PR Notice
This PR was automatically created by c1-dev-bot as a potential implementation.
This code requires: