Skip to content

Commit

Permalink
[Breaking] Reorg the user-group apis with a explicit google group spe…
Browse files Browse the repository at this point in the history
…c field. (#33)
  • Loading branch information
anekkanti authored Jun 18, 2024
1 parent d5b163e commit 508379b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
11 changes: 9 additions & 2 deletions temporal/api/cloud/cloudservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,15 @@ message GetUserGroupsRequest {
string page_token = 2;
// Filter groups by the namespace they have access to - optional.
string namespace = 3;
// Filter groups by their name - optional.
string group_name = 4;
// Filter groups by the display name - optional.
string display_name = 4;
// Filter groups by the google group specification - optional.
GoogleGroupFilter google_group = 5;

message GoogleGroupFilter {
// Filter groups by the google group email - optional.
string email_address = 1;
}
}

message GetUserGroupsResponse {
Expand Down
16 changes: 12 additions & 4 deletions temporal/api/cloud/identity/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,20 @@ message User {
google.protobuf.Timestamp last_modified_time = 8;
}

message GoogleGroupSpec {
// The email address of the Google group.
// The email address is immutable. Once set during creation, it cannot be changed.
string email_address = 1;
}

message UserGroupSpec {
// The name of the group as defined in the customer's IdP (e.g. Google group name in Google Workspace)
// The name is immutable. Once set, it cannot be changed
string name = 1;
// The access assigned to the group
// The display name of the group.
string display_name = 1;
// The access assigned to the group.
Access access = 2;
// The specification of the google group that this group is associated with.
// For now only google groups are supported, and this field is required.
GoogleGroupSpec google_group = 3;
}

message UserGroup {
Expand Down

0 comments on commit 508379b

Please sign in to comment.