Changing Google Site Owner

386 views
Skip to first unread message

Corey Schneer

unread,
May 3, 2023, 6:09:18 AM5/3/23
to GAM for Google Workspace
How can I go about changing the ownership of a Google Site in GAM? I would like to add myself as an owner and remove a student as the owner. I know how to add myself as an editor, but I'm not sure of the next steps.

Thank you,
Corey

Ross Scroggs

unread,
May 3, 2023, 1:35:59 PM5/3/23
to google-ap...@googlegroups.com
Corey,

Here are the steps.

Ross

# Add teacher as a writer                                                                                                                                                                                         

$ gam user stu...@domain.com add drivefileacl <DriveFileID> user tea...@domain.com role writer

User: stu...@domain.com, Add 1 Drive File/Folder ACL

  User: stu...@domain.com, Drive File/Folder ID: <DriveFileID>, Permission ID: tea...@domain.com, Added

  Teacher Name

    id: 12361179155003706789

    type: user

    emailAddress: tea...@domain.com

    domain: domain.com

    role: writer

    deleted: False

    pendingOwner: False


# Update teacher to owner                                                                                                                                                                                         

$ gam user stu...@domain.com update drivefileacl <DriveFileID> tea...@domain.com role owner

User: stu...@domain.com, Update 1 Drive File/Folder ACL

  User: stu...@domain.com, Drive File/Folder ID: <DriveFileID>, Permission ID: 12361179155003706789, Updated

  Teacher Name

    id: 12361179155003706789

    type: user

    emailAddress: tea...@domain.com

    domain: domain.com

    role: owner

    deleted: False

    pendingOwner: False


# Delete student access                                                                                                                                                                                           

$ gam user tea...@domain.com delete drivefileacl <DriveFileID> stu...@domain.com

User: tea...@domain.com, Delete 1 Drive File/Folder ACL

  User: tea...@domain.com, Drive File/Folder ID: <DriveFileID>, Permission ID: 12390292633793029789, Deleted


# Verify                                                                                                                                                                                                          

$ gam user tea...@domain.com show drivefileacl <DriveFileID>

User: tea...@domain.com, Show 1 Drive File/Folder

  Drive File/Folder ID: <DriveFileID>, Show 1 Permittee

    Teacher Name

      id: 12361179155003706789

      type: user

      emailAddress: tea...@domain.com

      domain: domain.com

      role: owner

      deleted: False

      pendingOwner: False


--
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/eb68ce1e-e980-42cc-8556-e691de471a27n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages