Skip to content

Gap - RBAC AuthZ - Assign role to all scopes in platform no supported in openedx-authz #268

Closed
1 of 1 issue completed
openedx/openedx-platform
#38660

Description

@rodmgwgu

This is a gap found on M2 of the AuthZ for course authoring project.

The figma design and user stories, on the "Assign Role" screen specify a "All courses in Platform" option, however this is not currently supported on the backend authz implementation. I started making changes for this but I found that this will also require changes on openedx-platform and extra discussion to make sure we are not missing anything.

Draft PR: #267 (This solution needs discussion, also this breaks course and library listing on openedx-platform, which will need changes)

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. BryanttV commented on May 13, 2026

    @BryanttV
    Contributor

    Objective

    Define and refine the technical approach required to support assigning RBAC roles to all courses in the platform while preserving current authorization behavior and avoiding unintended access to other resources such as libraries.

    Problem Statement

    Current Gap

    The system currently supports authorization scopes tied to these resources:

    • Course
    • Library
    • Organization (Course or Library)

    But there is no backend representation for: “Access to all courses in the platform”

    Current Behavior

    Scope Type Description Class
    Course Access to a single course CourseOverviewData
    Library Access to a single library ContentLibraryData
    Organization in Courses Access to all courses within an Org OrgCourseOverviewGlobData
    Organization in Libraries Access to all libraries within an Org OrgContentLibraryGlobData

    Expected Behavior

    The platform should support assigning a role that:

    • Applies to all existing courses.
    • Automatically applies to future courses.
    • Does not grant access to libraries or other future scopes.
    • Works consistently across LMS and Studio.
    • Integrates cleanly with the current RBAC/AuthZ architecture.

    Note

    Analyzing the Draft PR, a new general-level scope is being included that applies to all scopes, not just at the course level. A different approach should be taken in this case.

    Proposed Solution

    1. Include a new base scope PlatformGlobData to assign platform-level permissions, following the same pattern as the OrgGlobData scope.
    2. Include a new course scope (PlatformCourseOverviewGlobData) that inherits from the base scope.
      • Note: Optionally, a library scope could be included if necessary in the future.
    3. Include a complete test suite, ensuring that the current behavior is not affected.
    4. Validate behavior alongside openedx-platform and make corresponding changes in listing and filtering if necessary, verifying that everything works as expected.
  2. moved this to Ready for Development in RBAC AuthZ Boardon May 14, 2026
  3. moved this from Ready for Development to In Progress in RBAC AuthZ Boardon May 14, 2026
  4. moved this from In Progress to Ready for review in RBAC AuthZ Boardon May 21, 2026
  5. moved this from Ready for review to Done in RBAC AuthZ Boardon Jun 4, 2026
  6. moved this from Done to Ready for review in RBAC AuthZ Boardon Jun 4, 2026
  7. moved this from Ready for review to Done in RBAC AuthZ Boardon Jun 19, 2026
  8. moved this from Done to In Progress in RBAC AuthZ Boardon Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions