GAM update Manager Email

531 views
Skip to first unread message

Aaron Hodges

unread,
Jul 6, 2021, 11:04:45 AM7/6/21
to GAM for Google Workspace
Hello,

I'm trying to update the Manager's email in Employee information with GAM but I haven't been able to find the right syntax for it, can anyone help?

Jay Lee

unread,
Jul 6, 2021, 11:10:33 AM7/6/21
to google-ap...@googlegroups.com
Manager is a relation type. Try:

gam update user us...@example.com relation manager m...@example.com

Jay

On Tue, Jul 6, 2021, 11:04 AM Aaron Hodges <aaron....@bairdwarner.com> wrote:
Hello,

I'm trying to update the Manager's email in Employee information with GAM but I haven't been able to find the right syntax for it, can anyone help?

--
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/bf7c6c17-c04e-470a-aef8-6aa846e1c88fn%40googlegroups.com.

Markus Frömmel

unread,
Sep 27, 2021, 6:18:50 AM9/27/21
to GAM for Google Workspace
Hi Jay,

i can set the manager with update user and it works fine, but not while creating the user. Is there something I should keep in mind? My command looks like this:


gam create user fname...@domain.com firstname 'fname' lastname 'lname' password 'xyz' changepassword true relation mananger man...@domain.com notify new...@hotmail.com message 'Hello #givenname#,[...]' otheremail home new...@hotmail.com && gam user fname...@domain.com add groups 'new...@domain.com,team...@domain.com,sales-t...@domain.com,a...@domain.com'

I also tried putting it in another position, but it didn't work either

am create user fname...@domain.com firstname 'fname' lastname 'lname' password 'xyz' changepassword true notify new...@hotmail.com message 'Hello #givenname#,[...]' otheremail home new...@hotmail.com relation mananger man...@domain.com && gam user fname...@domain.com add groups 'new...@domain.com,team...@domain.com,sales-t...@domain.com,a...@domain.com'


Any Idea?

Cheers, Markus

Kim Nilsson

unread,
Sep 27, 2021, 9:29:56 AM9/27/21
to GAM for Google Workspace
Markus, 
I just tested a simple create and it worked fine.
Do note that the manager email must exist in the workspace domain.

Do one test.user without all your other attributes, just to see that it works.

Kim Nilsson

unread,
Sep 27, 2021, 9:31:26 AM9/27/21
to GAM for Google Workspace
Also, unless your Workspace account has several email domains, you rarely ever need to supply the @domain.com.
It's implied.

Markus Frömmel

unread,
Sep 30, 2021, 10:11:18 PM9/30/21
to GAM for Google Workspace
Now it suddenly worked. I put the manager directly behind the password and that was accepted. I don't know if that is the issue, but it is solved now :-)

Thanks!



Reply all
Reply to author
Forward
0 new messages