Google Workspace

How to hat-gate read, write, or comment access on specific Google docs, sheets, or slides

To hat-gate read, comment, or write access to specific Google documents, sheets, or slides, you will need to complete the following steps:

  1. Create a Guild role associated with access to the Google Workspace document or use an existing Guild role

  2. Associate that Guild role with one or more Hats

  3. Give that Guild role access to the relevant Google document(s)

1. Create a new role in Guild or use an existing Guild role

If you have not yet set up a Guild, follow these instructions.

Navigate to your existing Guild and select "Add Role". We recommend creating a Guild role with the same name and image as the Hat you want to associated it with.

If you have already created a Guild role that you want to associate with this authority, continue to step 2.

2. Add a requirement that an address must hold a specific Hat token ID in order to claim that Guild role:

If you have already associated that Guild role with the Hat token ID, you can skip this step.

Within that Guild role, select "Add Requirement"

Then select "NFT"

Finally, select "Add requirement".

This Guild role is now gated by the hat!

3. Give that Guild role access to the relevant Google document(s)

Within the Guild role, select "Add Reward", select "Google Workspace", and follow the instructions to provide Guild with editor access to the appropriate Google document.

Return to Guild, and wait a few seconds for the box below to appear. Once it does, select Gate File and then select the desired access type. Save by clicking Gate file again, and finally click Save once more to save the changes to the Guild role.

That's it, you've now given specific hats special access to a Google Workspace document!

4. Update your Hats tree to automatically include Guild authorities

This step will enable the Hats app to automatically detect and display related authorities in your Hats tree:

Skip this step if your tree's top-hat already includes the relevant Guild(s).

  • Select "Edit Tree"

  • Locate and select the tree's top-hat

  • In the "Hat Basics" section, add the relevant Guilds. A Guild's name can be found in its URL. For example, if the Guild page is, then its name is 'hats-protocol'. authorities will now be displayed on the relevant hats:

Last updated