<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Brian Kim</title>
    <description>The latest articles on DEV Community by Brian Kim (@hjkimbrian).</description>
    <link>https://dev.to/hjkimbrian</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3701207%2F79380f48-0dbc-43de-af51-f0cbcf918fc3.jpg</url>
      <title>DEV Community: Brian Kim</title>
      <link>https://dev.to/hjkimbrian</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hjkimbrian"/>
    <language>en</language>
    <item>
      <title>How to List All Google Voice Users and Numbers with GAM</title>
      <dc:creator>Brian Kim</dc:creator>
      <pubDate>Wed, 11 Mar 2026 23:55:07 +0000</pubDate>
      <link>https://dev.to/gde/how-to-list-all-google-voice-users-and-numbers-with-gam-4n87</link>
      <guid>https://dev.to/gde/how-to-list-all-google-voice-users-and-numbers-with-gam-4n87</guid>
      <description>&lt;p&gt;As a Google Workspace administrator, you've likely encountered a common frustration: &lt;strong&gt;visibility&lt;/strong&gt;. While Google Voice is a powerful tool, managing it at scale can be tricky when the native tools don't give you the specific views you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;The Problem&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Currently, Google Workspace administrators face two main hurdles when auditing phone assignments:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Admin Console Limitations:&lt;/strong&gt; There isn't a single, "at-a-glance" report in the Admin Console that maps every assigned Google Voice number to its respective user.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API Filtering:&lt;/strong&gt; While the &lt;a href="https://developers.google.com/workspace/admin/directory/reference/rest/v1/users/list" rel="noopener noreferrer"&gt;Directory API&lt;/a&gt; allows you to list users, it doesn't provide an easy way to filter specifically for those with Google Voice numbers assigned without fetching and parsing the entire user object.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;The Solution: GAM 7.36.00+&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;With the release of &lt;a href="https://github.com/GAM-team/GAM/wiki/GamUpdates#73600" rel="noopener noreferrer"&gt;Google Apps Manager (GAM) 7.36.00&lt;/a&gt;, we finally have a streamlined way to export this data. We can now target users with Google Voice licenses and extract their assigned numbers directly into a Google Sheet.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;The Command&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Run the following command in your terminal to generate a full report:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;gam license voicepremier print users fields primaryemail,phone filtermultiattrcustom phone "Google Voice" todrive&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Breaking Down the Logic&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;gam license voicepremier print users&lt;/code&gt;: Targets only the users who have a &lt;strong&gt;Google Voice Premier&lt;/strong&gt; license assigned. (Change voicepremier to voicestandard if applicable to your organization).
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fields primaryemail,phone&lt;/code&gt;: Tells GAM to specifically retrieve the user's email address and their phone attributes.
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;filtermultiattrcustom phone "Google Voice"&lt;/code&gt;: This is the "magic" part. It filters the results to only show phone numbers that are tagged as "Google Voice" numbers, excluding personal mobile or desk phone entries.
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;todrive&lt;/code&gt;: Automatically uploads the resulting CSV data to a new Google Sheet in your Admin account for easy sharing and sorting.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Why This Matters&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Auditing your numbers is crucial for cost management and ensuring that employees have the correct contact information listed in the company directory. By using GAM, you turn a manual, multi-hour verification process into a single-line command that takes seconds.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Are you using GAM to manage Google Voice? Let me know in the comments if you have any other useful scripts!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/GAM-team/GAM" rel="noopener noreferrer"&gt;GAM Team GitHub&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://support.google.com/a/answer/9229433?hl=en" rel="noopener noreferrer"&gt;Google Voice License Types&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>googleworkspace</category>
      <category>googlevoice</category>
    </item>
  </channel>
</rss>
