diff --git a/temporal/api/cloud/cloudservice/v1/request_response.proto b/temporal/api/cloud/cloudservice/v1/request_response.proto index 0d6ced1..100ba24 100644 --- a/temporal/api/cloud/cloudservice/v1/request_response.proto +++ b/temporal/api/cloud/cloudservice/v1/request_response.proto @@ -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; } message GetUsersResponse { @@ -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 { diff --git a/temporal/api/cloud/identity/v1/message.proto b/temporal/api/cloud/identity/v1/message.proto index 4a020ab..b8bd2c6 100644 --- a/temporal/api/cloud/identity/v1/message.proto +++ b/temporal/api/cloud/identity/v1/message.proto @@ -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 {