SAMP Office 365 Setup Error "YOUR_APPLICATION application Needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it."Description<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Symptoms During the Set up Microsoft Office 365 integration procedure, you may encounter the below error message at step #2: YOUR_APPLICATION application Needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it. Cause This is not an issue with the configuration. When we try to set-up Office-365 integration, we need to access the users and reports information. For this we configure the secrets in the step 1.C. This needs admin consent (approval). So once we set-up the secrets, a user with admin access needs to consent this then only the secrets are fulfilled. Resolution Login as admin user into the Application Registration Portal and approve/consent the requests: Additional Resources https://social.msdn.microsoft.com/Forums/office/en-US/0c3bbb38-468c-4e4b-9fcf-cbe42bb3dfda/aadsts90093-this-operation-can-only-be-performed-by-an-administrator-but-user-is-a-global-admin?forum=WindowsAzureAD https://nicksnettravels.builttoroam.com/post/2017/01/24/Admin-Consent-for-Permissions-in-Azure-Active-Directory.aspx https://blogs.msdn.microsoft.com/aaddevsup/2018/05/08/receiving-aadsts90094-the-grant-requires-admin-permission/ https://social.msdn.microsoft.com/Forums/office/en-US/0c3bbb38-468c-4e4b-9fcf-cbe42bb3dfda/aadsts90093-this-operation-can-only-be-performed-by-an-administrator-but-user-is-a-global-admin?forum=WindowsAzureAD