prompt for regular user to test service account.

This commit is contained in:
Jay Lee
2016-11-04 11:39:20 -04:00
parent ff3a8644ec
commit 082c34b453
2 changed files with 11 additions and 3 deletions

View File

@@ -60,8 +60,10 @@
@ echo Please answer y or n.
@ goto saauth
)
@echo(
@set /p regularuser= "Please enter the email address of a regular G Suite user: "
@echo Great! Checking service account scopes. This will fail the first time. Follow the steps to authorize and retry. It can take a few minutes for scopes to PASS after they've been authorized in the admin console.
@gam user %adminemail% check serviceaccount
@gam user %regularuser% check serviceaccount
@if not ERRORLEVEL 1 goto sadone
@echo(
@echo Service account authorization failed. Confirm you entered the scopes correctly in the admin console. It can take a few minutes for scopes to PASS after they are entered in the admin console so if you're sure you entered them correctly, go grab a coffee and then hit Y to try again. Say N to skip admin authorization.
@@ -69,4 +71,4 @@
:sadone
echo GAM installation and setup complete!
:alldone
:alldone