انتقل إلى المحتوى الرئيسي

Sharing an item

Your role decides what you may create. Sharing decides who can touch each individual thing after it exists.

Three kinds of item can be shared: assistants, workflows and document sources. Everything else inherits its access from one of those three.


The four levels​

LevelMeaning
OwnerCreated it, or was handed ownership. Full control, including deleting and re-sharing.
EditorCan change the item, but not delete or re-share it.
ViewerCan see and use the item. Cannot change anything.
ExecutorWorkflows only. Can run it, but not change it.

You can share with an individual person or with a group — sharing with a group grants the level to every member.

Only the Owner can share

Editors and Viewers cannot pass access on to someone else. Besides the Owner, only Admins and Platform Admins can re-share an item.


What each level grants​

Assistants​

ViewerEditorOwner
Read and chat with it✅✅✅
Edit it—✅✅
Clone it✅ ¹✅ ¹✅
Share it——✅
Delete it——✅

Workflows​

ViewerExecutorEditorOwner
Read it✅✅✅✅
Run it—✅✅✅
Edit it——✅✅
Clone it✅ ¹✅ ¹✅ ¹✅
Share it———✅
Delete it———✅

Document sources​

ViewerEditorOwner
Read it✅✅✅
Upload documents—✅✅
Ingest documents—✅✅
Edit it—✅✅
Share it——✅
Delete it——✅

¹ Cloning also requires the Contributor role (or Admin / Platform Admin). Someone with the plain User role cannot clone even an item they own.

Uploading and ingesting are the same as editing

On a document source, can_upload_documents and can_ingest_documents are both defined as "whatever can_update allows". If you can edit the source, you can add and process documents in it — there is no separate permission to grant.


Making something public​

Instead of naming people, you can flip an item to public, which grants access to everyone in the organization at a fixed level.

ItemWhat "public" grants everyone
AssistantRead and chat
WorkflowRead and run
Document sourceRead
Public workflows can be run by anyone

Making a workflow public does not just let people look at it — can_execute includes everyone with public access. If the workflow costs money, writes to an external system, or sends messages, consider sharing it with a group as Executor instead.


What inherits from what​

Most things in the product are not shared directly. They ride along on their parent.

ItemHow access is decided
ChatYou must own it and be able to read its assistant. Admins can read any chat.
DocumentFollows its document source. Editing a document needs edit rights on the source.
Workflow runYou must own it and be able to read its workflow. Admins can read any run.
Workflow scheduleYou must be able to read the workflow, or own the workflow outright.
RatingYou must own it and be able to read the chat or run it belongs to.

This cascade explains a common surprise: losing access to an assistant also hides your own chats with it. The chat rule requires both ownership and readable assistant, so removing the assistant share closes the chats too.


Doing it in the app​

Open the item's menu and choose Share. Pick people or groups, choose a level, and save. The same screen has the public toggle.

Under the hood the app calls:

ActionEndpoint
Grant or revoke a levelPOST /api/permission
Make public or privatePOST /api/permission/public
See who has accessGET /api/permission/users/{EntityType}:{entityId}
See which groups have accessGET /api/permission/groups/{EntityType}:{entityId}