Logo Confluence Permission

Confluence Permission

Cộng đồng
ulises-jeremias
confluence-permission

Manage space and page permissions and restrictions. ALWAYS use when user wants to control access, set restrictions, or manage who can view/edit content.

Tổng quan

Nhà phát hànhulises-jeremias
Kho mãagent-toolkit
Tên kỹ năngconfluence-permission
Sao
20
Bản fork
5
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được ulises-jeremias công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Confluence Permission trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/confluence-permission
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ulises-jeremias/agent-toolkit.git /tmp/agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/agent-toolkit/plugins/agent-toolkit-complete/skills/confluence-permission .claude/skills/confluence-permission
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Confluence Permission trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Confluence Permission ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Confluence Permission với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Confluence Permission Skill

Manage space and page permissions and restrictions.


⚠️ PRIMARY USE CASE

This skill controls who can access Confluence content. Use this skill for:

  • Setting space-level permissions (who can view/edit a space)
  • Adding page restrictions (limit access to specific users/groups)
  • Auditing current permissions and restrictions

⚠️⚠️ WARNING: Permission changes can lock users out of content. Always document current permissions before making changes.


When to Use This Skill

TriggerExample
View permissions"Who can access DOCS space?", "Show page restrictions"
Add permissions"Give engineering-team read access to DOCS"
Remove permissions"Remove John's access to page 12345"
Restrict pages"Lock this page to admins only"
Audit access"List all permissions for TEAMSPACE"

When NOT to Use This Skill

OperationUse Instead
Create/edit pagesconfluence-page
Search for contentconfluence-search
Manage space settingsconfluence-space
View who's watchingconfluence-watch

Risk Levels

OperationRiskNotes
Get permissions-Read-only
Add permission⚠️Grants access, can be removed
Remove permission⚠️⚠️Can lock users out
Add page restriction⚠️⚠️Can hide content from users
Remove all restrictions⚠️Opens page to all space members

Overview

This skill provides comprehensive permission management for Confluence:

  • Space Permissions: Control who can access and administer entire spaces
  • Page Restrictions: Limit read/edit access to specific pages

Note: Due to API limitations, this skill uses a hybrid approach:

  • v2 API for reading space permissions
  • v1 API for modifying space permissions and managing page restrictions

CLI Commands

confluence-as permission space get

Retrieve the list of permissions assigned to a space.

Usage:

bash
confluence-as permission space get SPACE_KEY
confluence-as permission space get DOCS --output json

Output: Lists all users and groups with their assigned operations (read, write, administer, etc.)

Note: Use --output json to see permission IDs, which are required for removing specific permissions with confluence-as permission space remove --permission-id.

confluence-as permission space add

Grant a permission to a user or group for a space.

Usage:

bash
confluence-as permission space add SPACE_KEY --user ACCOUNT_ID --operation read
confluence-as permission space add DOCS --group confluence-users --operation create
confluence-as permission space add TEST --user 557058:12345678-abcd-1234-efgh-123456789abc --operation administer
confluence-as permission space add DOCS --group editors --operation create --target page

Options:

  • --user - User account ID (plain ID, no prefix)
  • --group - Group name
  • --operation - Permission operation (required)
  • --target - Target type (default: space)

Valid Operations:

  • read - View content
  • create - Create content
  • delete - Delete content
  • administer - Manage space
  • archive - Archive content
  • restrict_content - Set content restrictions
  • export - Export content

Valid Targets:

  • space - Space-level permission (default)
  • page - Page-level permission
  • blogpost - Blog post permission
  • comment - Comment permission
  • attachment - Attachment permission

confluence-as permission space remove

Revoke a permission from a user or group for a space.

Usage:

bash
# Method 1: Remove by permission ID (preferred)
confluence-as permission space remove SPACE_KEY --permission-id 12345
confluence-as permission space remove DOCS -p 67890

# Method 2: Remove by user/group + operation (finds and removes matching permissions)
confluence-as permission space remove SPACE_KEY --user ACCOUNT_ID --operation read
confluence-as permission space remove DOCS --group confluence-users --operation create

Options:

  • --permission-id, -p - Permission ID to remove (primary method)
  • --user - User account ID (requires --operation)
  • --group - Group name (requires --operation)
  • --operation - Operation to match (REQUIRED when using --user or --group)

Note: Use confluence-as permission space get to find permission IDs.

confluence-as permission page get

List restrictions on a page (who can read/edit).

Usage:

bash
confluence-as permission page get PAGE_ID
confluence-as permission page get 123456 --output json

Output: Shows read and update restrictions with users and groups

confluence-as permission page add

Add a restriction to limit page access.

Usage:

bash
confluence-as permission page add PAGE_ID --operation read --user ACCOUNT_ID
confluence-as permission page add 123456 --operation update --group confluence-users
confluence-as permission page add 123456 --operation read --user 557058:12345678-abcd-1234-efgh-123456789abc

Options:

  • --user - User account ID (plain ID, no prefix)
  • --group - Group name
  • --operation - Restriction type (required): read or update

Restriction Types:

  • read - Who can view the page
  • update - Who can edit the page

confluence-as permission page remove

Remove a restriction from a page.

Usage:

bash
confluence-as permission page remove PAGE_ID --operation read --user ACCOUNT_ID
confluence-as permission page remove 123456 --operation update --group confluence-users
confluence-as permission page remove 123456 --operation read --all

Options:

  • --user - User account ID to remove from restriction
  • --group - Group name to remove from restriction
  • --operation - Restriction type (required): read or update
  • --all - Remove all restrictions of this type

Use --all to remove all restrictions of a type (makes page accessible to all space members).

Examples

Restrict a confidential page

bash
# Get current restrictions
confluence-as permission page get 123456

# Add read restriction to specific users (use account IDs)
confluence-as permission page add 123456 --operation read --user 557058:john-account-id
confluence-as permission page add 123456 --operation read --user 557058:jane-account-id

# Add edit restriction to admins group
confluence-as permission page add 123456 --operation update --group confluence-administrators

Grant space access to a team

bash
# Add read permission for the team
confluence-as permission space add TEAMSPACE --group engineering-team --operation read

# Add create permission for contributors (to create pages)
confluence-as permission space add TEAMSPACE --group engineering-leads --operation create --target page

# Verify permissions
confluence-as permission space get TEAMSPACE

Remove all restrictions from a page

bash
# Remove all read restrictions (make viewable to all space members)
confluence-as permission page remove 123456 --operation read --all

# Remove all update restrictions (make editable to all space members)
confluence-as permission page remove 123456 --operation update --all

Important Notes

API Limitations

  • Space permission management via API may be restricted by Confluence administrators
  • Inherited page restrictions are not shown in API responses (CONFCLOUD-71108)
  • Admin keys cannot bypass restrictions when using the API

Permission Hierarchy

  • Space permissions apply to all content in the space
  • Page restrictions override space permissions (more restrictive)
  • Removing all page restrictions makes it follow space permissions

Best Practices

  • Always verify changes with get commands
  • Use groups instead of individual users when possible
  • Document permission changes in page history or space description
  • Test with a non-admin account to verify restrictions work

Common Pitfalls

1. Locking Yourself Out

  • Problem: Removing your own access to a page/space
  • Solution: Always ensure at least one admin retains access before changes

2. Inherited Restrictions Not Visible

  • Problem: Page appears accessible but users can't view it
  • Solution: Check parent page restrictions (API doesn't show inherited)

3. User vs Account ID

  • Problem: --user not finding the person
  • Solution: Use the plain account ID (e.g., 557058:12345678-abcd-1234-efgh-123456789abc), no prefix needed

4. Group Name Mismatch

  • Problem: Group not found when adding permissions
  • Solution: Group names are case-sensitive, verify exact name in Confluence admin

5. Space Admin Override

  • Problem: Page restrictions being bypassed
  • Solution: Space admins can always access content - this is by design

6. API Restrictions

  • Problem: Permission changes fail silently
  • Solution: Some permission operations require Confluence admin privileges

Error Handling

ErrorCauseResolution
403 ForbiddenInsufficient privileges to modify permissionsRequest space admin access
404 Not FoundUser, group, or resource doesn't existVerify user email, group name, page ID
400 Bad RequestInvalid operation or subject typeCheck operation name, use correct subject type
409 ConflictPermission already exists or conflictsCheck current permissions first

Recovery from Permission Errors

Locked out of page:

bash
# Space admin can remove restrictions via UI or API
confluence-as permission page remove PAGE_ID --operation read --all
confluence-as permission page remove PAGE_ID --operation update --all

Accidentally removed space access:

bash
# Confluence admin can restore via Confluence Admin > Space Permissions
# Or re-add the permission:
confluence-as permission space add SPACE_KEY --group GROUP_NAME --operation read

Audit trail:

  • Space permission changes are logged in Confluence audit log
  • Page restriction changes appear in page history

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Confluence Permission làm được gì?

Manage space and page permissions and restrictions. ALWAYS use when user wants to control access, set restrictions, or manage who can view/edit content.

Vì sao nên dùng Confluence Permission trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Confluence Permission là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Confluence Permission trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/confluence-permission. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Confluence Permission?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Confluence Permission với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Confluence Permission với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Confluence Permission có miễn phí không?

Có. Kỹ năng này được ulises-jeremias phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇