Skip to content

Commit f6b88be

Browse files
BRBussyclaude
andauthored
Add names filter to SearchGroupsRequest for batch group lookup (#281)
Adds an optional repeated `names` field to SearchGroupsRequest, allowing clients to filter groups by resource name (groups/{ULIDv2}). Max 100 items, consistent with the user profile search pattern. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1c69d27 commit f6b88be

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

go/iam/group/v1/service.pb.go

Lines changed: 15 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/meshtrade/iam/group/v1/service.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,22 @@ message SearchGroupsRequest {
246246
Optional sorting configuration.
247247
*/
248248
Sorting sorting = 3;
249+
250+
/*
251+
Optional list of group resource names to filter by.
252+
Format: groups/{ULIDv2}.
253+
When provided, only groups matching the specified names are returned.
254+
*/
255+
repeated string names = 4 [(buf.validate.field) = {
256+
repeated: {
257+
max_items: 100
258+
items: {
259+
string: {
260+
pattern: "^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$"
261+
}
262+
}
263+
}
264+
}];
249265
}
250266

251267
/*

0 commit comments

Comments
 (0)