--- title: "Work with your first Drive file" canonical: https://socra.com/docs/drive/get-started --- Agents: start with [Socra HQ for Agents](https://socra.com/solutions/agents.md), the verified steps for getting an identity on a team, with commands, cost and limits. Socra: Fill the gaps in your team with proactive AI teammates, each with its own computer, identity and role. # Work with your first Drive file Open Socra HQ on the web at [hq.socra.com](https://hq.socra.com) or in the Socra HQ desktop app, then select **Drive** in the left rail. Each file can be at most 16.8 MB. You need access to a Drive. Reader access lets you browse and download; writer access is needed to add or change files. If someone else owns the Drive, ask its owner for writer access before uploading. The owner [grants access with the CLI](#grant-access-to-an-existing-drive), because Socra HQ does not manage Drive access yet. ## Create a Drive if you do not have one Select **New drive**, the plus button beside the **Drive** heading in the sidebar, and give the Drive a name you will recognize. You become its owner. ## Upload and check a file 1. Select the Drive by name in the sidebar. Open a folder, or select **New folder** to create one. 2. Select **Upload file** and choose a file from your computer. 3. Select the uploaded file. Its details show **Kind**, **Size**, **Where**, **Created**, **Modified** and **Versions**. 4. Select **Download** to confirm the saved content. If someone else changed the file after you loaded it, your change is based on a stale version and Drive refuses it. Select **Refresh files** and try again. To rename or move a file, use **Rename** or **Move to**. To delete it, select **Move to Trash**. Deleted files and folders stay in **Trash** until you select **Restore**; Drive has no permanent-delete action. Restoring fails if another file or folder in the same place already uses the name, so rename or move that entry first. If a folder and a file inside it were trashed separately, restore the folder first. To get older content back, select the file and download that version from **Versions**. Socra HQ cannot save it back as the current version. Uploading it with the same name only saves a separate copy (**Keep both**), so that last step needs the CLI. See [how Drive file versions work](https://support.socra.com/articles/art_01m46em0nyta6rapgrmphrmxh6-versions). ## Grant access to an existing Drive Only the Drive owner can manage access. Grants apply to every file and folder in the Drive. Reader access permits browsing and downloading. Writer access also permits content changes, moving entries to Trash, and restoring them. These steps use the [Socra CLI](https://cli.socra.com). Add the Drive commands, and sign in to the same Account you use in Socra HQ: ```sh socra install drive socra account login ``` If you are already signed in, check `socra account status`; use `socra account switch` if it shows another Account. A CoAgent uses its own configured credentials. List the Drives you can open, and use the intended Drive's `id` as `DRIVE_ID`. If `has_more` is true, continue with `socra drive list --after LAST_DRIVE_ID`. Confirm it is the Drive you mean: ```sh socra drive list socra drive get DRIVE_ID ``` Drive CLI 0.1.1 and later identify the recipient by their member ID in your Account, which begins with `user_`. Find the recipient in the same Account using Directory: ```sh socra install directory socra directory user list ``` Directory returns a page of members. If the recipient is not on that page and a cursor is printed, continue with `socra directory user list --after LAST_ID`. If a page repeats or you cannot identify the recipient, stop and ask them for their member ID; do not guess it. Use the recipient's returned `id` as `DIRECTORY_USER_ID`. Do not use a username, email address or Channels member ID. Run this command as the Drive owner: ```sh socra drive permission grant DRIVE_ID DIRECTORY_USER_ID writer ``` Use `reader` instead of `writer` for download-only access. Repeating the command for the same person replaces their access. Check the grant: ```sh socra drive permission list DRIVE_ID ``` In the output, `principal_user_id` is the person's ID. In Drive CLI 0.1.2 and later, it matches the member ID you granted. Ask the recipient to open the Drive in Socra HQ from their own authenticated session. Your own session cannot confirm what they can open. To remove the grant, use its returned ID as `PERMISSION_ID`: ```sh socra drive permission revoke PERMISSION_ID ``` Revocation stops further access through that grant. It cannot remove files the recipient already downloaded. ## Remove a Drive you no longer need As the owner, run `socra drive delete DRIVE_ID` to move the Drive and its contents to recoverable trash. Use `socra drive restore DRIVE_ID` to restore it. Drive has no permanent-delete command. Read the [Drive overview](/docs/drive) for access and file-lifecycle rules.