Skip to content

Task - RBAC AuthZ - Implement scopes endpoint for Admin Console #229

@rodmgwgu

Description

@rodmgwgu

Related Discovery: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/6060310529/Spike+-+M2+-+Endpoints+for+new+Admin+Console+designs

Implement the scopes endpoint to be used in scopes filters.

Spec:

GET /api/authz/v1/scopes/

  • Query params:
    • page_size (optional): For pagination
    • page (optional): For pagination
    • org (optional): For filtering by org
    • search (optional): For searching by scope name
    • management_permission_only (default false): This will be used to filter either by only scopes that have “management“ permissions (if true), or just view permissions.
  • Needs to filter to only relevant scopes (courses or libraries) that the calling user has view access
  • Always sort by org

Response fields:

Please note: The response fields are wrapped around the standard pagination response.

external_key: (str)
display_name: (str)
org: (Organization model)

Metadata

Metadata

Assignees

Labels

verawoodReleased in Verawood

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions