Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions temporal/api/cloud/cloudservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ message GetUsersRequest {
string email = 3;
// Filter users by the namespace they have access to - optional.
string namespace = 4;
// Whether to include each user's group memberships in the response - optional.
// Defaults to false.
bool include_group_memberships = 5;
Comment thread
anekkanti marked this conversation as resolved.
Resolved
}

message GetUsersResponse {
Expand All @@ -60,6 +63,9 @@ message GetUsersResponse {
message GetUserRequest {
// The id of the user to get
string user_id = 1;
// Whether to include the user's group memberships in the response - optional.
// Defaults to false.
bool include_group_memberships = 2;
}

message GetUserResponse {
Expand Down
12 changes: 12 additions & 0 deletions temporal/api/cloud/identity/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,18 @@ message User {
// The date and time when the user was last modified
// Will not be set if the user has never been modified
google.protobuf.Timestamp last_modified_time = 8;
// The SCIM and Cloud groups the user is a member of, without their access or roles.
// This field is only set if include_group_memberships in the GetUser or GetUsers request is true
// and the caller has access to the user's full identity information.
repeated UserGroupMembership group_memberships = 10;
}

// A group the user is a member of.
message UserGroupMembership {
// The id of the group.
string group_id = 1;
// The display name of the group.
string display_name = 2;
}

message GoogleGroupSpec {
Expand Down
Loading