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.