OfficeDev / microsoft-teams-apps-requestateam

Power Platform based solution that allows users to request teams and automates team creation.
MIT License
234 stars 65 forks source link

Microsoft Graph Error when running Deploy script #153

Open RobertBondy opened 3 years ago

RobertBondy commented 3 years ago

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 commented 3 years ago

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