Skip to content

Instantly share code, notes, and snippets.

@okash1n
Created December 1, 2021 00:12
Show Gist options
  • Save okash1n/fcd8c4b2cb067cf8dc33dd460de8b295 to your computer and use it in GitHub Desktop.
Save okash1n/fcd8c4b2cb067cf8dc33dd460de8b295 to your computer and use it in GitHub Desktop.
管理者アカウントと代理アカウントの数、無効なアカウント、ロックアウトされたアカウント、停止中のアカウントの数(日付別)
SELECT date,
accounts.num_locked_users,
accounts.num_disabled_accounts,
accounts.num_delegated_admins,
accounts.num_super_admins,
accounts.num_suspended_users,
accounts.num_users
FROM api_project_name.dataset_name.usage
WHERE accounts.num_users IS NOT NULL
ORDER BY date ASC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment