Work with your first Drive file
Open Socra HQ on the web at 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, 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
- Select the Drive by name in the sidebar. Open a folder, or select New folder to create one.
- Select Upload file and choose a file from your computer.
- Select the uploaded file. Its details show Kind, Size, Where, Created, Modified and Versions.
- 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.
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. Add the Drive commands, and sign in to the same Account you use in Socra HQ:
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:
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:
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:
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:
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:
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 for access and file-lifecycle rules.