From 7587672c64fd7897391b38582512890d13ad78a8 Mon Sep 17 00:00:00 2001 From: Abhishek Sah Date: Tue, 12 May 2026 09:39:45 +0530 Subject: [PATCH] feat(frontier): add SetGroupMemberRole RPC Introduces a new RPC to change an existing group member's role, mirroring SetOrganizationMemberRole. Supports user (and future principal types) with an explicit role, replacing the implicit role assignment in AddGroupUsers. Co-Authored-By: Claude Opus 4.7 (1M context) --- raystack/frontier/v1beta1/frontier.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/raystack/frontier/v1beta1/frontier.proto b/raystack/frontier/v1beta1/frontier.proto index 9298ca0d..a4aeefee 100644 --- a/raystack/frontier/v1beta1/frontier.proto +++ b/raystack/frontier/v1beta1/frontier.proto @@ -93,6 +93,8 @@ service FrontierService { rpc RemoveGroupUser(RemoveGroupUserRequest) returns (RemoveGroupUserResponse) {} + rpc SetGroupMemberRole(SetGroupMemberRoleRequest) returns (SetGroupMemberRoleResponse) {} + rpc EnableGroup(EnableGroupRequest) returns (EnableGroupResponse) {} rpc DisableGroup(DisableGroupRequest) returns (DisableGroupResponse) {} @@ -2176,6 +2178,16 @@ message RemoveGroupUserRequest { message RemoveGroupUserResponse {} +message SetGroupMemberRoleRequest { + string group_id = 1 [(buf.validate.field).string.uuid = true]; + string org_id = 2 [(buf.validate.field).string.uuid = true]; + string principal_id = 3 [(buf.validate.field).string.uuid = true]; + string principal_type = 4 [(buf.validate.field).string.min_len = 1]; + string role_id = 5 [(buf.validate.field).string.uuid = true]; +} + +message SetGroupMemberRoleResponse {} + message DeleteRelationRequest { reserved 3;