Repository navigation
Add scopes and custom roles reference for AI Workspace - #842
Open
VimukthiHerath wants to merge 2 commits into
Open
VimukthiHerath wants to merge 2 commits into
VimukthiHerath wants to merge 2 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #455
Purpose
Users who want to create custom roles in AI Workspace had no reference for which scopes exist or what each one allows. The "Add more users" section of the Authentication overview mentions that roles can be edited or added, but doesn't say which scopes to use.
Resolves #455
Checklist
llms.txt(located aten/docs/llms.txt) is updated for AI readiness content.Goals
Give administrators a single page that explains how scopes work, how to define and assign a custom role, and what every Platform API scope allows.
Approach
Added
scopes.mdunder AI Workspace > Authentication, with these sections:ap:naming pattern, themanagescope covering sub-resources, any one listed scope being enough, theap:api_key:all:manageownership override, no wildcards, and roles combining.openapi.yaml.dp:scopes.Also added the "Scopes and Custom Roles" nav entry after "Connect an Identity Provider", the matching
next/redirect, and a link to the new page from the Authentication overview.User stories
As an administrator, I want to know which scopes exist and what each one allows, so that I can define a custom role for my users.
Release note
Added a "Scopes and Custom Roles" page to the AI Workspace documentation, covering how to create custom roles and listing every Platform API scope.
Documentation
en/docs/ai-workspace/1.0.0/setting-up/authentication/scopes.mdTraining
N/A
Certification
N/A. Documentation-only change.
Marketing
N/A
Automation tests
Security checks
$2a$12$...placeholder)Samples
N/A
Related PRs
None
Migrations (if applicable)
N/A
Test environment
Docs build tooling: Python 3.12, mkdocs.
Learning
Scope names and descriptions come from
platform-api/resources/openapi.yaml. The naming convention and role behavior come from the comments inplatform-api/resources/role-to-scope-mapping.yamlin wso2/api-platform. Thedp:note is based on the API Portal OpenAPI spec.