@@ -311,6 +311,17 @@ service ChatService {
311311 // you can add the user to the space by setting the `membership.member.name`
312312 // to `users/user@example.com` or `users/123456789`.
313313 //
314+ // To specify the Google groups to add, add memberships with the
315+ // appropriate `membership.group_member.name`. To add or invite a Google
316+ // group, use `groups/{group}`, where `{group}` is the `id` for the group from
317+ // the Cloud Identity Groups API. For example, you can use [Cloud Identity
318+ // Groups lookup
319+ // API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
320+ // to retrieve the ID `123456789` for group email `group@example.com`, then
321+ // you can add the group to the space by setting the
322+ // `membership.group_member.name` to `groups/123456789`. Group email is not
323+ // supported, and Google groups can only be added as members in named spaces.
324+ //
314325 // For a named space or group chat, if the caller blocks, or is blocked
315326 // by some members, or doesn't have permission to add some members, then
316327 // those members aren't added to the created space.
@@ -427,7 +438,8 @@ service ChatService {
427438 // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
428439 //
429440 // To specify the member to add, set the `membership.member.name` for the
430- // human or app member.
441+ // human or app member, or set the `membership.group_member.name` for the
442+ // group member.
431443 //
432444 // - To add the calling app to a space or a direct message between two human
433445 // users, use `users/app`. Unable to add other
@@ -440,6 +452,15 @@ service ChatService {
440452 // profile ID for `user@example.com` is `123456789`, you can add the user to
441453 // the space by setting the `membership.member.name` to
442454 // `users/user@example.com` or `users/123456789`.
455+ //
456+ // - To add or invite a Google group in a named space, use
457+ // `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
458+ // Identity Groups API. For example, you can use [Cloud Identity Groups lookup
459+ // API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
460+ // to retrieve the ID `123456789` for group email `group@example.com`, then
461+ // you can add or invite the group to a named space by setting the
462+ // `membership.group_member.name` to `groups/123456789`. Group email is not
463+ // supported, and Google groups can only be added as members in named spaces.
443464 rpc CreateMembership (CreateMembershipRequest ) returns (Membership ) {
444465 option (google.api.http ) = {
445466 post : "/v1/{parent=spaces/*}/members"
0 commit comments