Fix required scope names on twelve endpoints - #1219
Merged
Merged
Conversation
beardicus
marked this pull request as ready for review
September 9, 2026 18:44
RohithSangati
approved these changes
Sep 10, 2026
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.
Human summary
These inconsistencies were found while working on product docs updates for doctl command permission scopes (PDOCS-4599). An agent facilitated the permissions consistency search and verification.
Summary
Twelve API operations declare
securityscopes that do not exist in the IAM permissions catalog. Anyone following the API reference to build a custom-scoped token for these endpoints ends up with a name they cannot select. This PR replaces each one with the correct scope.nfs/nfs_list.yml,nfs_snapshot_list.yml,nfs_access_point_list.ymlnfs:listnfs:readdatabases/databases_update_kafka_schema_config.yml,..._subject_config.ymldatabase:writedatabase:updategen-ai/genai_update_custom_model_metadata.ymlgenai:defaultgenai:updatebyoip_prefixes/byoip_prefixes_update.ymlbyoip_prefix:writebyoip_prefix:updatepartner_network_connect/partner_attachment_service_key_create.ymlpartner_network_connect:writepartner_network_connect:updatededicated_inferences/dedicated_inferences_tokens_{list,create,delete}.ymldedicated_inference_tokens:*dedicated_inference_token:*organizations/organizations_list_teams.ymlorganization:readorganization_membership:read_teamsHow the new values were verified
Each endpoint was called against production with custom-scoped personal access tokens:
account:read, all twelve endpoints returned 403.you are missing the required permission partner_network_connect:update), which is how that one was pinned down.GET /v2/organizations/teamsreturned 200 with a token holding onlyorganization_membership:read_teams. That scope is only offered to Organization Admin, Owner, and Biller roles.