You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Granular Space-Level Scoping and Permission Controls for App Tokens #4078
Is your feature request related to a problem? Please describe.
When generating an App Token (for example, to connect an MCP AI client to OpenCloud), the token currently inherits access to all Spaces the user has access to, along with the user's full permissions. I am frustrated that I cannot restrict an App Token to specific Spaces. I do not want an external app or AI agent to have blanket access to all my sensitive Spaces just because it needs to work in one specific project Space.
Describe the solution you'd like
I would like the ability to scope App Tokens to specific Spaces with granular permissions, both during token creation and editable afterward:
Space Selection List: When creating or editing an App Token, provide a selectable list of Spaces that this specific token is allowed to access. (All unselected Spaces remain completely invisible/inaccessible to the token).
Per-Space Permission Levels: For each selected Space in that list, provide a setting to define the maximum allowed actions for the token:
Read-Only
Read + Write (cannot delete)
Read + Write + Delete
Describe alternatives you've considered
The only current workaround is to create separate "bot" or "dummy" user accounts in OpenCloud, generate an App Token for that dummy user, and manually invite that user to specific Spaces with specific roles. This is frustrating because it clutters user management, requires admin intervention for every personal AI workflow, and may consume extra user licenses.
Additional context
This is critical for modern AI workflows (like MCP servers). For example, a user might want to give an AI agent an App Token that has Read-Only access to a "Company Knowledgebase" Space, Read + Write access to an "AI Drafts" Space, and zero access to a "Finance" Space. Being able to adjust these scopes on the fly without regenerating the token would be a massive security and usability improvement.
Example UI concept for Token Settings:
[x] Space A (Marketing) -> Dropdown: [Read + Write]
Activity