4

I'm unable to generate a direct link to Google Chat DM. We'd like to link Google Chat DMs to peoples profiles in our organisation.

I've tried to use the users Google ID to generate the link, for example https://chat.google.com/dm/123455 but that redirects nowhere.

I'd expect that there is a way to generate a direct link, either by using users primary email, google ID or to list users DMs through an API call.

  • 1
    I just created a new feature request, for the Google Hangouts Chat API (or People API for that matter), to expose this information : https://issuetracker.google.com/issues/134526655 Go and star it to vote ! :) – Olivier Jun 05 '19 at 10:58

1 Answers1

4

Retrieving the "user chat ID" does not seems possible with the existing API.
I have created a new feature request, for the Google Hangouts Chat API (or People API for that matter), to expose this information : https://issuetracker.google.com/issues/134526655

As a workaround, you can use the People API to retrieve the Gaia ID of a user, and then open the a Google Hangouts conversation with the appropriate URL.
Quoting my answer to "Create direct link to Google Hangouts chat" :

  1. you'll need to know that person's Gaia ID (an internal ID used by Google).

    I have added a detailed answer to an existing stackoverflow question in which I describe how to retrieve the Gaia ID using the People API. TL;DR: Request metadata in the personFields, by using people.connections.list resources for your contacts, or the people/get resource for yourself.

  2. Once you've got someone's Gaia ID, it's pretty straightforward to create the correct URL to start a Hangout with them. Simply replace 1XXXXXXXXXXXX below with that user's Gaia ID:

    https://hangouts.google.com/chat/person/1XXXXXXXXXXXX

Olivier
  • 617
  • 1
  • 7
  • 9
  • 3
    Per your step 2, is there an equivalent link for Google Chat? Hangouts has been disabled by my administrator. I tried various forms of https://chat.google.com/ but they all redirect as being incorrectly formed. – Kevin D Dec 03 '20 at 12:57
  • 2
    Same issue here, I cannot find an equivalent for Google Chat. Any help? – Claudio Jan 28 '21 at 14:29