Skip to content

Commit 0c49425

Browse files
feat(frontier): add SetGroupMemberRole RPC (#485)
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) <noreply@anthropic.com>
1 parent 36019fc commit 0c49425

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

raystack/frontier/v1beta1/frontier.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ service FrontierService {
9393

9494
rpc RemoveGroupUser(RemoveGroupUserRequest) returns (RemoveGroupUserResponse) {}
9595

96+
rpc SetGroupMemberRole(SetGroupMemberRoleRequest) returns (SetGroupMemberRoleResponse) {}
97+
9698
rpc EnableGroup(EnableGroupRequest) returns (EnableGroupResponse) {}
9799

98100
rpc DisableGroup(DisableGroupRequest) returns (DisableGroupResponse) {}
@@ -2176,6 +2178,16 @@ message RemoveGroupUserRequest {
21762178

21772179
message RemoveGroupUserResponse {}
21782180

2181+
message SetGroupMemberRoleRequest {
2182+
string group_id = 1 [(buf.validate.field).string.uuid = true];
2183+
string org_id = 2 [(buf.validate.field).string.uuid = true];
2184+
string principal_id = 3 [(buf.validate.field).string.uuid = true];
2185+
string principal_type = 4 [(buf.validate.field).string.min_len = 1];
2186+
string role_id = 5 [(buf.validate.field).string.uuid = true];
2187+
}
2188+
2189+
message SetGroupMemberRoleResponse {}
2190+
21792191
message DeleteRelationRequest {
21802192
reserved 3;
21812193

0 commit comments

Comments
 (0)