mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-20 14:11:37 +00:00
Some checks failed
Build and test GAM / build (Win64, build, 7, VC-WIN64A, windows-2022) (push) Has been cancelled
Build and test GAM / build (aarch64, build, 2, linux-aarch64, [self-hosted linux arm64]) (push) Has been cancelled
Build and test GAM / build (aarch64, build, 4, linux-aarch64, [self-hosted linux arm64], yes) (push) Has been cancelled
Build and test GAM / build (aarch64, build, 6, darwin64-arm64, macos-14) (push) Has been cancelled
Build and test GAM / build (x86_64, build, 1, linux-x86_64, ubuntu-22.04) (push) Has been cancelled
Build and test GAM / build (x86_64, build, 3, linux-x86_64, ubuntu-22.04, yes) (push) Has been cancelled
Build and test GAM / build (x86_64, build, 5, darwin64-x86_64, macos-13) (push) Has been cancelled
Build and test GAM / build (x86_64, test, 10, ubuntu-24.04, 3.10) (push) Has been cancelled
Build and test GAM / build (x86_64, test, 11, ubuntu-24.04, 3.11) (push) Has been cancelled
Build and test GAM / build (x86_64, test, 8, ubuntu-24.04, 3.13) (push) Has been cancelled
Build and test GAM / build (x86_64, test, 9, ubuntu-24.04, 3.9) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Check for Google Root CA Updates / check-apis (push) Has been cancelled
Build and test GAM / merge (push) Has been cancelled
Build and test GAM / publish (push) Has been cancelled
31 lines
1.1 KiB
Markdown
31 lines
1.1 KiB
Markdown
!# Users - Signout and Turn off 2-Step Verification
|
|
- [API documentation](#api-documentation)
|
|
- [Definitions](#definitions)
|
|
- [Signout Users](#signout-users)
|
|
- [Turn off 2-Step Verification](#turn-off-2-step-verification)
|
|
|
|
## API documentation
|
|
* https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/signOut
|
|
* https://developers.google.com/admin-sdk/directory/reference/rest/v1/twoStepVerification/turnOff
|
|
|
|
## Definitions
|
|
* [`<UserTypeEntity>`](Collections-of-Users)
|
|
|
|
## Signout Users
|
|
Sign a user out of all web and device sessions and reset their sign-in cookies.
|
|
The user will have to sign in by authenticating again.
|
|
```
|
|
gam <UserTypeEntity> signout
|
|
```
|
|
## Turn off 2-Step Verification
|
|
Turn off 2-Step Verification for a user.
|
|
If successful, this call will turn off 2-Step Verification and also remove all registered second steps on the user account.
|
|
This call will fail if **any** of the following is true:
|
|
* the user is suspended
|
|
* the user is not enrolled in 2-Step Verification.
|
|
* the user has 2-Step Verification enforced.
|
|
* the user is enrolled in the Advanced Protection Program.
|
|
```
|
|
gam <UserTypeEntity> turnoff2sv
|
|
```
|