HI Jitender Kumar
The steps would be:
1. Generate the list of Shared Drives
First, get the IDs of all shared drives in a CSV file:
gam print teamdrives fields id > uc.csv
2. Identify a user who belongs to all shared drives or include a user in all shared drives
Example of inclusion:
gam csv uc.csv gam add drivefileacl "~id" user
x...@domain.com.info role organizer
3. Execute:
gam config csv_output_header_filter "User,id,name,Total,Item cap" redirect csv - multiprocess todrive csv uc.csv gam user
x...@domain.com.info print filecounts select teamdriveid ~id
Where:
Item cap ===> Shared drive occupancy percentage
Total =====> Total of elements in the shared unit
Example
I hope you find the information useful.
Joel