Skip to content

Commit ff52119

Browse files
committed
fix(offboard): deprovision before delete
signs user out, removes IMAP/POP access, removes client tokens and app passwords requires account to not be in suspended state https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Deprovision
1 parent 35027f4 commit ff52119

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

bin/offboard.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ fi
4848

4949
# Offboard process
5050

51-
signout="${SCRIPT_DIR}/signout.sh"
52-
$signout "$1"
53-
54-
echo_ts "Suspending account..."
55-
56-
gam suspend user $ACCOUNT noactionifalias
57-
58-
echo_ts "Suspending account done"
59-
6051
echo_ts "Removing from groups..."
6152

6253
gam user $ACCOUNT delete groups
@@ -83,11 +74,13 @@ done
8374

8475
echo_ts "Drive and Calendar transfer complete"
8576

86-
echo_ts "Starting account deletion..."
77+
echo_ts "Starting account deprovision..."
78+
79+
gam user $ACCOUNT deprovision popimap signout
8780

8881
gam delete user $ACCOUNT noactionifalias
8982

90-
echo_ts "Account deletion complete"
83+
echo_ts "Account deprovision complete"
9184

9285
if [[ "$ALIAS" != "" ]]; then
9386
echo_ts "Adding an alias on account $ALIAS..."

0 commit comments

Comments
 (0)