Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft Graph Error when running Deploy script #153

Open
RobertBondy opened this issue Sep 23, 2020 · 1 comment
Open

Microsoft Graph Error when running Deploy script #153

RobertBondy opened this issue Sep 23, 2020 · 1 comment
Assignees

Comments

@RobertBondy
Copy link

Granting admin content for Microsoft Graph...
Forbidden({"ClassName":"Microsoft.Portal.Framework.Exceptions.ClientException","Message":"Graph call failed with httpCode=Forbidden, errorCode=Authorization_RequestDenied, errorMessage=This operation can only be performed by an administrator. Sign out and sign in as an administrator or contact one of your organization's administrators., reason=Forbidden, correlationId = e2886238-760b-423e-8559-01072698ca0a, response = {"odata.error":{"code":"Authorization_RequestDenied","message":{"lang":"en","value":"This operation can only be performed by an administrator. Sign out and sign in as an administrator or contact one of your organization's administrators."},"requestId":"ba0467be-3f89-43b8-b744-38b8da982368","date":"2020-09-23T12:43:06"}}","Data":{},"HResult":-2146233088,"XMsServerRequestId":null,"Source":null,"HttpStatusCode":403,"ClientData":{"errorCode":"Authorization_RequestDenied","localizedErrorDetails":{"errorDetail":"This operation can only be performed by an administrator. Sign out and sign in as an administrator or contact one of your organization's administrators."},"operationResults":null,"timeStampUtc":"2020-09-23T12:43:07.0001199Z","clientRequestId":"e2886238-760b-423e-8559-01072698ca0a","internalTransactionId":"2040d915-f813-441a-9b77-782eed8f6c04","tenantId":"e932331f-e0d1-48c5-91f0-c45d6c6ada05","userObjectId":"98e8de43-35ca-4548-b0c6-c357c4a5a379","exceptionType":"AADGraphException"}})

@alexc-MSFT
Copy link
Member

@RobertBondy what permissions does the account have which you are running the script as? Global admin is required for application consent grant.

@alexc-MSFT alexc-MSFT self-assigned this Sep 29, 2020
@alexc-MSFT alexc-MSFT added the invalid This doesn't seem right label Sep 29, 2020
@alexc-MSFT alexc-MSFT removed the invalid This doesn't seem right label Feb 14, 2022
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

No branches or pull requests

2 participants