Create shortcut in specific folder is failing

20 views
Skip to first unread message

Bassel Massamiri

unread,
Dec 2, 2025, 9:59:18 AM (5 days ago) Dec 2
to GAM for Google Workspace
Hi Ross,

Trying to create shorcuts in specific file locations using parentid but it says command not found,can you please look into it.

Here is my command:

gam user us...@domain.com add drivefileshortcut https://docs.google.com/spreadsheets/d/ID parentid ID



gam <UserTypeEntity> create|add drivefileshortcut <DriveFileEntity> [shortcutname <String>]
        [<DriveFileParentAttribute>|convertparents]
        [csv [todrive <ToDriveAttribute>*]] [returnidonly]

<DriveFileParentAttribute> 

-bash: parentid: command not found

Thanks,

Ross Scroggs

unread,
Dec 2, 2025, 10:23:02 AM (5 days ago) Dec 2
to google-ap...@googlegroups.com
Put the URL in quotes or just use the file ID:

gam user us...@domain.com add drivefileshortcut "https://docs.google.com/spreadsheets/d/ID" parentid ID

gam user us...@domain.com add drivefileshortcut FileID parentid ID

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/fd2e21ea-b645-4d28-a24c-576f75436132n%40googlegroups.com.

Bassel Massamiri

unread,
Dec 2, 2025, 10:34:22 AM (5 days ago) Dec 2
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages