taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
687 stars 86 forks source link

If email is created then send notification email to mutliple accounts like BCC/CC #404

Closed PrashantDSE closed 3 weeks ago

PrashantDSE commented 3 months ago

Hi @taers232c Ross, First of all thanks for this wonderful tool. its easy to create users in google Workspace.

but here I'm stuck at some point: I'm using CSV to create users in bulk, If successfully email is created then log its details .

the commands: gam csv New_employee_data.csv gam create user "~business_email" firstname "~givenName" lastname "~familyName" password "~password" verifynotinvitable notify "c-prashant.dwivedi@gmail.com" addnumericsuffixonduplicate 3 location type desk area "Desk 123" floorname "5th Floor" floorsection "Section B" endlocation organization customtype " Media labs" description "FullTime" costcenter "12345" department "UI Department" title " Engineer" primary externalid organization "EMP12345" displayname "sap-utf-testing-Prashant" org "/amagi.com/TestAccounts"

at first when user's email is created I want to insert all details in fields which are:

Personal_email, givenName, familyName ,Mobile (work)/Mobile (home)/Mobile (other), userID, jobTitle, ,Employee Type, ManagerUserNav/Email ,BusinessUnit /Name,Division /Name,DepartmentNav

/Name,homeAddressNavDEFLT, LocationNav/AddressNavDeflt, Created On, Start Date, Last Modified, business_email, password,

taers232c commented 3 months ago

Prashant,

Send me a Meet/Zoom invitation.

Ross

On Tue, Mar 19, 2024 at 6:40 AM Prashant Dwivedi @.***> wrote:

Hi @taers232c https://github.com/taers232c Ross, First of all thanks for this wonderful tool. its easy to create users in google Workspace.

but here I'm stuck at some point: I'm using CSV to create users in bulk, If successfully email is created then log its details .

the commands: gam csv New_employee_data.csv gam create user "~business_email" firstname "~givenName" lastname "~familyName" password "~password" verifynotinvitable notify @.***" addnumericsuffixonduplicate 3 location type desk area "Desk 123" floorname "5th Floor" floorsection "Section B" endlocation organization customtype " Media labs" description "FullTime" costcenter "12345" department "UI Department" title " Engineer" primary externalid organization "EMP12345" displayname "sap-utf-testing-Prashant" org "/amagi.com/TestAccounts"

at first when user's email is created I want to insert all details in fields which are:

Personal_email, givenName, familyName ,Mobile (work)/Mobile (home)/Mobile (other), userID, jobTitle, ,Employee Type, ManagerUserNav/Email ,BusinessUnit /Name,Division /Name,DepartmentNav

/Name,homeAddressNavDEFLT, LocationNav/AddressNavDeflt, Created On, Start Date, Last Modified, business_email, password,

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/404, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZQWZGWGYXPQBYKRUTYZA56NAVCNFSM6AAAAABE5S2EPCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TKMBQHA3TGNY . You are receiving this because you were mentioned.Message ID: @.***>

-- Ross Scroggs @.***

PrashantDSE commented 3 months ago

To join the video meeting, click this link: https://meet.google.com/hbr-pjxt-yuz Otherwise, to join by phone, dial +1 413-402-0636 and enter this PIN: 889 087 159# To view more phone numbers, click this link: https://tel.meet/hbr-pjxt-yuz?hs=5

PrashantDSE commented 3 months ago

Hi Ross, as we discussed we are running this commands: gam config num_threads 1 redirect stdout ./new_employee_emial_creation.txt multiprocess redirect stderr stdout csv New_employee_data.csv gam create user "~business_email" firstname "~givenName" lastname "~familyName" password uniquerandom 20 verifynotinvitable notify "[c-prashant.dwivedi@gmail.com](mailto:c-prashant.dwivedi@gmail.com)" addnumericsuffixonduplicate 20 location type desk area "Desk 123" floorname "5th Floor" floorsection "Section B" endlocation organization customtype "Media labs" description "FullTime" costcenter "12345" department "UI Department" title "Engineer" primary externalid organization "EMP12345" displayname "sap-utf-testing-Prashant" org "/gmail.com/TestAccounts"

and we are generating a log file which include created or failed status, can we also include some field in this log file like "employee ID"

Thanks.

taers232c commented 3 months ago

See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users#admin-console-user-info https://github.com/taers232c/GAMADV-XTD3/wiki/Users#admin-console-user-info

EmployeeID is externalid organization "E1234"

Ross

Ross Scroggs @.***

On Mar 20, 2024, at 3:30 AM, Prashant Dwivedi @.***> wrote:

Hi Ross, as we discussed we are running this commands: gam config num_threads 1 redirect stdout ./new_employee_emial_creation.txt multiprocess redirect stderr stdout csv New_employee_data.csv gam create user "~business_email" firstname "~givenName" lastname "~familyName" password uniquerandom 20 verifynotinvitable notify @.**@.)" addnumericsuffixonduplicate 20 location type desk area "Desk 123" floorname "5th Floor" floorsection "Section B" endlocation organization customtype "Media labs" description "FullTime" costcenter "12345" department "UI Department" title "Engineer" primary externalid organization "EMP12345" displayname "sap-utf-testing-Prashant" org "/gmail.com/TestAccounts"

and we are generating a log file which include created or failed status, can we also include some field in this log file like "employee ID"

Thanks.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/404#issuecomment-2009228089, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL2S4HUHAFPFTDBBWT3YZFQLZAVCNFSM6AAAAABE5S2EPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBZGIZDQMBYHE. You are receiving this because you were mentioned.

PrashantDSE commented 2 months ago

Hi @taers232c Once account is created a notification email is going to users email with email credentials, how do send this information to other people at the same time like any option to add BCc account.

taers232c commented 2 months ago

See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users#password-notification

it's: notify

... notify @.**@*.**@*.***

Ross

Ross Scroggs @.***

On Apr 14, 2024, at 1:24 PM, Prashant Dwivedi @.***> wrote:

Hi @taers232c https://github.com/taers232c Once account is created a notification email is going to users email with email credentials, how do send this information to other people at the same time like any option to add BCc account.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/404#issuecomment-2054175328, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZZ2YOM5FQCJPVDK2DY5LQX5AVCNFSM6AAAAABE5S2EPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJUGE3TKMZSHA. You are receiving this because you were mentioned.