emailmatchpattern not working to search for user contacts

161 views
Skip to first unread message

Colin O'Leary

unread,
Oct 18, 2021, 5:57:12 AM10/18/21
to GAM for Google Workspace
Hi,

I used to be able to run the command below and print out matched contacts for a user but it is no longer working and dose not print the contacts:


./gam user joe.b...@test.co.uk print contacts emailmatchpattern dav*

Getting all People Contacts for joe.b...@test.co.uk
Got 3 People Contacts...
Getting all Other Contacts for joe.b...@test.co.uk
Got 617 Other Contacts...
User,resourceName


I am using the latest gam - GAMADV-XTD3 6.08.23




I see on the wiki at link above:

As of version 6.28.00, GAM uses the People API to manage user contacts rather than the Contacts API.

Most commands will work unchanged but Google has completely changed how the data is presented. If you have scripts that process the output from print contacts for example, they will have to be changed.

You might want to keep an older version of GAM available so you can compare the output from the two versions and make adjustments as necessary.

If you manage contacts in the contact group "Other Contacts", you will need to use an older version, as the People API has very little support for this.

To use these commands you must add the People API to your project and authorize the appropriate scopes:


gam update project 
gam oauth create 
gam user us...@domain.com check serviceaccount


Ive updated gam as per above to use the people api but how do I run the command now to get contacts for just one person like I did previously - is it still possible ?

Thanks

Colin

Reply all
Reply to author
Forward
0 new messages