Stay organized with collectionsSave and categorize content based on your preferences.
This guide describes how to create, list, and deletemanaged folders.
Before you begin
Before you begin, make sure you have the required Identity and Access Management (IAM)
role to create and manage managed folders, and enable uniform bucket-level access.
Get required roles
To get the permissions that you need to create and manage managed folders, ask
your administrator to grant you the Storage Folder Admin
(roles/storage.folderAdmin) IAM role for the bucket.
This predefined role contains the permissions required to create and
manage managed folders. To see the exact permissions that are required, expand
theRequired permissionssection:
Required permissions
storage.managedfolders.create
storage.managedfolders.delete
storage.managedfolders.get
storage.managedfolders.list
storage.objects.list
This permission is only required if you want to validate newly created
managed folders by listing them.
When using the Google Cloud console, you create managed folders by
converting simulated folders. The following steps describe how to create
a simulated folder and convert it to a managed folder.
In the Google Cloud console, go to the Cloud StorageBucketspage.
In the list of buckets, click the name of the bucket you want to create
managed folders in.
In theBucket detailspage, clickCreate folderto create a new folder. If the folder you want to
convert to a managed folder already exists, skip to the step describing
how to access theMore optionsmore_vertmenu.
In theNamefield, enter a name for your folder. For naming
considerations, seeManaged folder names.
ClickCreate.
Your newly created folder appears in theFolder browserpane.
In theFolder browserpane, click theMore optionsmore_vertmenu next to the
folder you want to convert to a managed folder and clickEdit access.
TheCreate managed folderdialog appears.
ClickAttach managed folder.
Your folder converts to a managed folder. APermissions forMANAGED_FOLDER_NAMEpane
appears that displays the IAM policies on the folder by
principal and role. To create new IAM policies, seeSet an IAM policy on a managed folder.
BUCKET_NAMEis the name of the bucket that
contains the managed folder you want to delete. For example,my-bucket.
MANAGED_FOLDER_NAMEis the name of the managed
folder you want to delete. For example,my-managed-folder/.
By default, managed folders must be empty before they can be
deleted. To delete a non-empty managed folder, includeallowNonEmpty=trueas a query parameter in your request.
Troubleshooting
For help creating and managing managed folders, refer to theTroubleshooting page.