Does GAM have code to check if user already exists before trying to create the account?

685 views
Skip to first unread message

Richy K

unread,
Feb 9, 2015, 12:28:55 PM2/9/15
to google-ap...@googlegroups.com
Does anyone know if GAM has any code, like if/else statements that will check if a user account already exists before I try to create it?

Ed Hillis

unread,
Feb 9, 2015, 5:31:31 PM2/9/15
to google-ap...@googlegroups.com
It doesn't, but it returns an error if the user already exists. If you write a script that calls GAM, you can build an if/else process by checking what it returns.

Ed


On Mon, Feb 9, 2015 at 11:28 AM, Richy K <richar...@gotoltc.edu> wrote:
Does anyone know if GAM has any code, like if/else statements that will check if a user account already exists before I try to create it?

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/fbaea396-b185-4e5f-b97e-ffbc0801ee37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ed Hillis
Web Programmer, Information Services
Southwestern University, Georgetown, Texas

Richy K

unread,
Mar 13, 2015, 3:31:19 PM3/13/15
to google-ap...@googlegroups.com
Thanks Ed,
Can you give me an example of how check what it returns, with an if/else statement.  I have been using VBscript.


On Monday, February 9, 2015 at 4:31:31 PM UTC-6, Ed Hillis wrote:
It doesn't, but it returns an error if the user already exists. If you write a script that calls GAM, you can build an if/else process by checking what it returns.

Ed
On Mon, Feb 9, 2015 at 11:28 AM, Richy K <richar...@gotoltc.edu> wrote:
Does anyone know if GAM has any code, like if/else statements that will check if a user account already exists before I try to create it?

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages