0 votes

I want to check if an alias exists in google via using a GAM command before user creation.

So far Create a "Before User Creation" Business Rule with the condition "If Script Return true" and the the Action "Cancel Operation"

for the script I have the following:

($usercheck = C:\GAM\gam.exe info alias %mail%) 2>&1> $null if ($usercheck -eq " Alias Email: %mail%") {[boolean]$usercheck} else {$usercheck = "" [boolean]$usercheck} When I run the above in PS, the return is the correct one, but does not seem to work once is on the Before User Createion Business Rule. Anybody doing something similar.

by (20 points)

1 Answer

0 votes
by (228k points)


What exactly do you mean by does not seem to work? For your information, to specify whether a script condition in Adaxes is met, you need to use the $Contet.ConditionIsMet property. As such, the last line in your script should be as follows:

$Context.ConditionIsMet = $usercheck -eq " Alias Email: %mail%"

Related questions

0 votes
1 answer

Hi, Was wondering if there's a nice way to manually or automatically check if a username or an extension is in use before creating a user? What do other people do? ... in the results, deleting the user and starting again - but would rather the checks first.

asked Feb 25, 2016 by AdamFowlerIT (120 points)
0 votes
1 answer

Hi Team, We are using a set of form/business rules/custom commands for user creation that move user account to the right OU given the Office attribute value. I would ... , but can't find valuable information on the web site. Thanks in advance Regards Stephen

asked Dec 12, 2012 by sroux (800 points)
0 votes
0 answers

We are currently using Adaxes Web interface for user provisioning and would like to add back-end fully automated process in addition to Web interface. If I have csv file ... Note: csv user data and header can be modified to meet import user data requirement

asked Oct 11, 2016 by wiser15 (20 points)
0 votes
1 answer

Is there a way to create user accounts in bulk via the web interface? Account operators will only have access through the web interface, so this is important.

asked Sep 8, 2011 by abdutal (110 points)
0 votes
1 answer

Is it possible to to get all users with a custom attribute defined? In PowerShell I'd be doing this: $s = get-aduser -filter 'Description -like "Sales Engineer"' | Select ... -like "True"' | Select Name Is this possible? Thanks for any help or tips!

asked Aug 7, 2018 by jake_h (300 points)
2,807 questions
2,541 answers
65,299 users