Skip to content

[Feature] Granular Space-Level Scoping and Permission Controls for App Tokens #4078

Open

Description

@suse-coder

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:

  1. 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).
  2. 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]
  • [x] Space B (Wiki) -> Dropdown: [Read-Only]
  • [ ] Space C (HR Confidential) -> (No Access)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions