GAM-team / GAM

command line management for Google Workspace
https://github.com/GAM-team/GAM/wiki
Apache License 2.0
3.54k stars 473 forks source link

show filelist to BigQuery #1677

Closed hwanghakbeom closed 1 month ago

hwanghakbeom commented 8 months ago

Hello, I used GAM for extract shared file list and permissions many times.

sometimes it returned huge lines and big File . and it hard to get open files when I use todrive command.

because I scan all users in org with delegation.

That's why need a feature toBigQuery. if it is possible to upload to bigquery. then I make a report for org users

and query that data.

the GAM create GCP project already, So just only enable BigQuery API and upload bigquery instead of drive.

please let me know how about this feature.

btw I should to add this feature for my self. but it may not match code standard and style

If you have any coding guide, I think it will help a lot for me.

thanks.

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

jay0lee commented 8 months ago

Google already maintains feature-rich command-line tools like gcloud and bq that allow full interaction with BigQuery and GCP so it's unlikely we'd duplicate their efforts in GAM.

You should be able to download the csv with GAM and then upload it to BigQuery with bq:

https://cloud.google.com/bigquery/docs/batch-loading-data#bq

Jay