Skip to content

Weekly Permissions sync 2025-11-15#1347

Closed
marabooy wants to merge 2 commits intomasterfrom
permissions-update/2025-11-15
Closed

Weekly Permissions sync 2025-11-15#1347
marabooy wants to merge 2 commits intomasterfrom
permissions-update/2025-11-15

Conversation

@marabooy
Copy link
Copy Markdown
Contributor

Weekly Permissions sync 2025-11-15

@marabooy marabooy requested a review from a team as a code owner November 15, 2025 00:35
Copilot AI review requested due to automatic review settings November 15, 2025 00:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR performs a weekly permissions sync, adding new API endpoint permissions for workHoursAndLocations settings, a Copilot retrieval endpoint, and a Cloud PC client usage report endpoint.

  • Adds multiple permission entries for the new /me/settings/workHoursAndLocations and /users/{id}/settings/workHoursAndLocations endpoints across various HTTP methods (GET, POST, PUT, DELETE, PATCH)
  • Adds permission for the /copilot/retrieval endpoint with DelegatedWork scheme
  • Adds permission for the /deviceManagement/virtualEndpoint/report/retrieveCloudPcClientUsageReport endpoint

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

],
"paths": {
"/me/settings/workHoursAndLocations": "",
"/me/settings/workHoursAndLocations/occurrencesView(startDateTime={value},endDateTime={value})": "least=DelegatedWork",
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent casing: the function parameter uses 'startDateTime' (camelCase), but in line 5733 the same path uses an empty string value while line 5273 uses 'least=DelegatedWork'. This inconsistency between two blocks defining the same paths with the same method and scheme suggests one may be incorrect or redundant.

Copilot uses AI. Check for mistakes.
"GET"
],
"paths": {
"/me/settings/workHoursAndLocations": "",
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path entry at line 5272 has an empty string value, but the same path at line 5833 (PATCH method) and line 29835 (GET method) has 'least=DelegatedWork'. The inconsistency suggests these duplicate entries may need consolidation or clarification of the permission requirements.

Copilot uses AI. Check for mistakes.
Comment on lines +5807 to +5808
"/users/{id}/settings/workHoursAndLocations/occurrences/{id}": "least=DelegatedWork",
"/users/{id}/settings/workHoursAndLocations/recurrences/{id}": "least=DelegatedWork"
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Path uses {id} placeholder twice in the same path (once for user ID and once for the resource ID). This ambiguous naming could lead to confusion. Consider using more descriptive placeholders like {userId} and {occurrenceId} or {recurrenceId} to distinguish between the two identifiers.

Copilot uses AI. Check for mistakes.
@jasonjoh jasonjoh closed this Nov 18, 2025
@jasonjoh jasonjoh deleted the permissions-update/2025-11-15 branch December 1, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants