Title: Admin consent for one of the requested scopes could not be added · Issue #174 · microsoftgraph/msgraph-training-java · GitHub
Open Graph Title: Admin consent for one of the requested scopes could not be added · Issue #174 · microsoftgraph/msgraph-training-java
X Title: Admin consent for one of the requested scopes could not be added · Issue #174 · microsoftgraph/msgraph-training-java
Description: Where did you get the code? [x ] Downloaded from GitHub Downloaded from the Microsoft Graph quick start tool Followed the tutorial from Microsoft Graph tutorials Describe the bug Running the register.ps1 script fails when trying to appro...
Open Graph Description: Where did you get the code? [x ] Downloaded from GitHub Downloaded from the Microsoft Graph quick start tool Followed the tutorial from Microsoft Graph tutorials Describe the bug Running the regist...
X Description: Where did you get the code? [x ] Downloaded from GitHub Downloaded from the Microsoft Graph quick start tool Followed the tutorial from Microsoft Graph tutorials Describe the bug Running the regist...
Opengraph URL: https://github.com/microsoftgraph/msgraph-training-java/issues/174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Admin consent for one of the requested scopes could not be added","articleBody":"### Where did you get the code?\r\n\r\n- [x ] Downloaded from GitHub\r\n- [ ] Downloaded from the [Microsoft Graph quick start tool](https://developer.microsoft.com/graph/quick-start)\r\n- [ ] Followed the tutorial from [Microsoft Graph tutorials](https://learn.microsoft.com/graph/tutorials)\r\n\r\n### Describe the bug\r\n\r\nRunning the register.ps1 script fails when trying to approve admin consent.\r\n\r\n### To Reproduce\r\n\r\nSteps to reproduce the behavior:\r\n\r\n```\r\nregister.ps1 -AppName \"RSMF Test\" -GraphScopes \"ChannelMessage.Read.All\",\"Chat.Read.All\",\"Group.Read.All\",\"Team.ReadBasic.All\",\"User.Read.All\",\"Files.Read.All\"\r\n```\r\n\r\nError:\r\n\r\n```\r\nAdmin consent for one of the requested scopes could not be added.\r\nInsufficient privileges to complete the operation.\r\n\r\nStatus: 403 (Forbidden)\r\nErrorCode: Authorization_RequestDenied\r\nDate: 2023-10-16T14:28:11\r\n\r\nHeaders:\r\nCache-Control : no-cache\r\nTransfer-Encoding : chunked\r\nVary : Accept-Encoding\r\nStrict-Transport-Security : max-age=31536000\r\nrequest-id : e0161e1a-b79b-4e67-afae-c10c720c9875\r\nclient-request-id : 963d9d69-fad3-4e8f-abce-1b24ac849ec4\r\nx-ms-ags-diagnostic : {\"ServerInfo\":{\"DataCenter\":\"South Central US\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"004\",\"RoleInstance\":\"SA2PEPF000023FB\"}}\r\nx-ms-resource-unit : 1\r\nDate : Mon, 16 Oct 2023 14:28:10 GM\r\n\r\n\r\nDisplayName Id AppId SignInAudience ServicePrincipalType\r\n----------- -- ----- -------------- --------------------\r\nRSMF Test xxxx-db9e-4869-909d-7b2819b9f00c xxxx-1d39-42dd-b656-ee7ff3be69b1 AzureADMyOrg Application\r\n```\r\n\r\n\r\n### Desktop\r\n\r\n- OS: MacOS 13.2.1\r\n- Browser: chrome (used for OAuth)\r\n- Version 118.0.5993.70\r\n\r\n### Dependency versions\r\n\r\n- Az: 10.4.1\r\n- Microsoft.Graph: 2.6.1\r\n\r\n\r\n### Additional Details\r\n\r\nMy account used for OAuth can manually grant consent in the Azure console. \r\n\r\n","author":{"url":"https://github.com/mcantrell","@type":"Person","name":"mcantrell"},"datePublished":"2023-10-17T14:07:52Z","url":"https://github.com/microsoftgraph/msgraph-training-java/issues/174"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b10cbdbc-a1b6-cee2-c717-c32e428015dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F54:3727EA:5124D:6E2AC:6AF67458 |
| html-safe-nonce | 05f6a5faf17e30f94ebfcf8c6bf283d7f925a5990997a9155a0367657403ba5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjU0OjM3MjdFQTo1MTI0RDo2RTJBQzo2QUY2NzQ1OCIsInZpc2l0b3JfaWQiOiI4NTk5OTQ2MzI1NzcwMjY5Nzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c30e1743aa19a58fa5aab4592056193cc9cb644112cca24b35b2b1e0787441ed |
| hovercard-subject-tag | issue:1947524210 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-training-java/174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6457fd4dc045ad3e5185879f5e0fa040ff651da1233598dc002484cf9d8e7f4a/microsoftgraph/msgraph-training-java/issues/174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6457fd4dc045ad3e5185879f5e0fa040ff651da1233598dc002484cf9d8e7f4a/microsoftgraph/msgraph-training-java/issues/174 |
| og:image:alt | Where did you get the code? [x ] Downloaded from GitHub Downloaded from the Microsoft Graph quick start tool Followed the tutorial from Microsoft Graph tutorials Describe the bug Running the regist... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mcantrell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5451898e13f81636602c8a1de0fb8d7190b7b2a473a9f8241168fd4dd110372e |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-training-java git https://github.com/microsoftgraph/msgraph-training-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 166453707 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-training-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 166453707 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-training-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8ba36e600310e0a3f7f56ea2244ea1240ea62bbf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width