Skip to content

Grant Library Admin when Creating a Library #111

Closed

Description

@MaferMazu

Description

When a user creates a content library, they should automatically be granted the library_admin role for that library. This role corresponds to the existing ADMIN access level defined in the https://openedx.atlassian.net/wiki/spaces/OEPM/pages/5252317270/Libraries+Roles+and+Permissions+Migration+Plan ensuring consistent privileges between the legacy and new authorization systems.

The goal of this issue is to implement that automatic role assignment during library creation. This only covers the creation and assignment logic; the actual permission checks for library_admin and other roles will be handled in a separate issue and PR.

Acceptance Criteria

  • When a user creates a content library, they are automatically granted the library_admin role for that library.
  • The assigned role is stored in the new authorization framework (Casbin-based system).
  • Existing library behavior remains unchanged (no new access checks introduced).
  • The role mapping is consistent with the Libraries Roles and Permissions Migration Plan.
  • Unit tests verify that the correct role (library_admin) is granted upon library creation.

Activity

  1. added
    MVP
    on Oct 22, 2025
  2. moved this to Ready for Development in RBAC AuthZ Boardon Oct 22, 2025
  3. moved this from Ready for Development to Blocked in RBAC AuthZ Boardon Oct 22, 2025
  4. moved this from Blocked to Ready for Development in RBAC AuthZ Boardon Oct 22, 2025
  5. moved this from Ready for Development to In Progress in RBAC AuthZ Boardon Oct 23, 2025
  6. moved this from In Progress to Ready for review in RBAC AuthZ Boardon Oct 27, 2025
  7. moved this from Ready for review to Done in RBAC AuthZ Boardon Nov 5, 2025
  8. closed this as completedby moving to Done in RBAC AuthZ Boardon Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

MVP

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions