GAM command not running as expected

578 Views Asked by At

I'm in the process of making changes to groups, when testing this against 1 group I can confirm this works but now I'm attempting to run this against a .csv which contains a list of all groups using the following.

gam csv mygroup.csv  | gam update group mygroup.csv who_can_view_group all_members_can_view

This returns an error so I went on to try the next

gam csv mygroup.csv |  gam update group ~Email who_can_view_group all_members_can_view

This also does not work, what am I doing wrong?

The error message:

zsh: no such user or named directory: Email

1

There are 1 best solutions below

0
On BEST ANSWER

This appears to be an OS-specific issue. I'm using mac which means you need to encase Email with "

gam csv mygroups.csv gam update group "~Email" who_can_view_group all_members_can_view

When running the above this works as expected