Find associated email address on of a youtube channel ID

797 views
Skip to first unread message

Admin_Thomas Ortiz

unread,
Dec 13, 2024, 5:15:20 PM12/13/24
to GAM for Google Workspace
Hey everyone! Hope y'all are all well.

I used the following gam command to print all of the users in our org that have a youtube account:
gam all users print youtubechannels todrive allfields

However, I was not able to locate the account with the channel id that I am searching for.
Because of this, I am looking to find out if I can use gam to tell me what the email is or the youtube handle is of a specific youtube channel ID that I provide it?

We know the youtube handle + the channel ID but just not the google account email that it is associated to.

In essence, we are trying to recover our company's official youtube account that was being managed by an employee that no longer works here. Unfortunately, they did not store the login credentials in to our company's password manager.

I appreciate everyones help and support! Thank you.

Ross Scroggs

unread,
Dec 13, 2024, 5:38:26 PM12/13/24
to google-ap...@googlegroups.com
gam all users print youtubechannels channels <PutDesiredChannelIDhere> todrive allfields

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/a7644f45-7691-4336-a381-00957e90f84bn%40googlegroups.com.

Ross Scroggs

unread,
Dec 13, 2024, 5:45:04 PM12/13/24
to google-ap...@googlegroups.com
What about: gam user depa...@domain.com show youtubechannels
----
Ross Scroggs


Admin_Thomas Ortiz

unread,
Dec 13, 2024, 8:05:59 PM12/13/24
to GAM for Google Workspace
Hey Ross! 

Thank you for taking on my request. You are the freakin best.
I ran the command you instructed, and the end result was different from the command I ran originally.

With the command I ran: gam all users print youtubechannels todrive allfields
I got a google sheet of 20 users, who had unique youtube accounts / Youtube @handles.

However, when I ran the command you suggested, I got a google sheet with a 299 users result list (all of the users that are in our workspace I imagine) +
the sheet lists all 299 accounts as being the associated email for the channel ID I used to search in the <PutDesiredChannelIDhere> section.
(I ran the command as: gam all users print youtubechannels channels 3456789uyhgfcvbncf todrive allfields)
(the bold channel ID hash above is a fake example i'm providing here for you to see how I populated the command and not the actual channel ID i'm searching for.)

What does this mean? I'm scared that it somehow means that the original email associated with the account was deleted from google workspace?
Which is crazy to me, because if it was-- why is the youtube page then still active?
Wouldn't the youtube account have been deleted as well if the workspace account is deleted?

Thanks again for all of your support Ross, you rock!

Ross Scroggs

unread,
Dec 13, 2024, 8:37:48 PM12/13/24
to google-ap...@googlegroups.com
I'm available now if you'd like to Meet/Zoom, send me an private invitation.

Ross
----
Ross Scroggs


Ross Scroggs

unread,
Dec 13, 2024, 8:54:58 PM12/13/24
to google-ap...@googlegroups.com
My mistake, the seond command shows all users with access to the channel.
The first command shows channels owned by the user.

Is the departed user suspended?

Ross
----
Ross Scroggs


Admin_Thomas Ortiz

unread,
Dec 18, 2024, 5:30:16 PM12/18/24
to google-ap...@googlegroups.com
Hey Ross,

I am available to meet today if you are.

To answer your question, since we do not know who / what username was the creator/owner of the Youtube account, I can't tell if the account associated with the youtube account has been suspended, archived or deleted.
What I do know is that the person who was managing the account has been offboarded recently and their google workspace account is archived.

I have time to meet today from 11AM -- 1PM EST
And then again today from 2PM -- 9PM EST

Let me know if any of those times work for you and I am happy to send a zoom link!
Thank you again for all of your support, you're a literal legend.


You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/ROFWUQeYsq0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/1D05AA8E-7D3E-4939-998A-F43ECDB8BE63%40gmail.com.

Ross Scroggs

unread,
Dec 18, 2024, 5:51:17 PM12/18/24
to google-ap...@googlegroups.com
I'm available now, send me a private Zoom invitation.

Ross
----
Ross Scroggs


Admin_Thomas Ortiz

unread,
Dec 19, 2024, 3:50:22 PM12/19/24
to GAM for Google Workspace
Hey everyone!

I just wanted to share an update on this post for anyone else in the future who may run in to this use case as well as to what the eventual solution was.

Although I was not able to locate the owner of the youtube account because the youtube account was either:
A) Created on a personal, gmail account (not an account in our workspace)
or
B) The workspace account has since been deleted and it is why it is not showing up.

The way we reached this conclusion is that the following command lists all of the existing active users + suspended (and in my case archived users) that have a youtube account associated with their google workspace account:
gam all users_ns_susp print youtubechannels allfields todrive

The "gam all users print youtubechannels allfields todrive" command I used earlier only shows the users that are active.

But with Ross's guidance, he shared that if you add "_ns_susp" to the end "users" portion of the command, it does a complete export of all the users.
As a result, I was able to attain a larger list of users with associated youtube accounts.

This was extremely helpful, especially because the information shows that there is a possibility that this youtube account I am searching ownership of is a non workspace account.
I hope this can help someone in the future. 

Special shoutout to the legendary Ross Scroggs, thank you for all of your support, contributions and everything that you do for our amazing community.
Take care everyone and keep being awesome!!
Reply all
Reply to author
Forward
0 new messages