With GAMADV-X (https://github.com/taers232c/GAMADV-X), this should do what you want.
Make a CSV file MigratedUsers.csv with a two columns:
Owner,Name
bo...@wardletrust.co.uk,James
...
1: Create "User Migrated Files" folder
gam csv MigratedUsers.csv gam user ~Owner add drivefile drivefilename "~~Name~~ Migrated Files" mimetype application/vnd.google-apps.folder
2: Share with Migration account
gam csv MigratedUsers.csv gam user ~Owner add drivefileacl drivefilename "~~Name~~ Migrated Files" user migr...@wardletrust.co.uk role writer
rclone
3: Claim ownership
gam csv MigratedUsers.csv gam user ~Owner claim ownership drivefilename "~~Name~~ Migrated Files"
4: Remove migration access
4a: Get list of files in all "User Migrated Files" folders
gam redirect csv ./MigratedPermissions.csv multiprocess csv MigratedUsers.csv gam user ~Owner print filelist select drivefilename "~~Name~~ Migrated Files" fields id,title
4b: Remove migration access to those files
gam csv MigratedPermissions.csv gam user ~Owner delete drivefileacl ~id migr...@wardletrust.co.uk
4c: Remove migration access to top folder
gam csv MigratedUsers.csv gam user ~Owner delete drivefileacl drivefilename "~~Name~~ Migrated Files" migr...@wardletrust.co.uk
Test with a couple of users, let me know the results.
I'll update claim ownership so that you can remove migr...@wardletrust.co.uk access in the same step; this would eliminate step 4.
Ross
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/3d1d07c2-77f7-4d87-9ef4-b99d7089f40f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/3d1d07c2-77f7-4d87-9ef4-b99d7089f40f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/3a0a8c4a-ac74-4854-a2b4-ea8213523122%40googlegroups.com.