# Azure AD Admin consent

**URL:** <https://community.hubspot.com/t/azure-ad-admin-consent/42480>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [August 18, 2021, 8:14am UTC](https://community.hubspot.com/t/azure-ad-admin-consent/42480 "2021-08-18T08:14:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KKorhonen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kkorhonen/32/18373_2.png) [@KKorhonen](https://community.hubspot.com/u/KKorhonen)\
**Post date:** [August 18, 2021, 8:14am UTC](https://community.hubspot.com/t/azure-ad-admin-consent/42480/1 "2021-08-18T08:14:19Z")

</div>

We would like to use HubSpot but we are not able to grant Admin consent to this application in Azure AD.

“Grant admin consent” -button is grayed out in Enterprise applications. And if I try construct URL for granting tenant-wide admin consent as “[Sign in to your account](http://login.microsoftonline.com/%7Btenant-id%7D/adminconsent?client)\_id={client-id}”, HubSpot gives us this error:

{“status”:“error”,“message”:“app-cookie not engaged. App cookie is not present on the request.”,“correlationId”:“92e5e5f6-37be-4955-a560-298b6fbdf92f”}

Is there any way to give admin consent to this application?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [August 18, 2021, 3:29pm UTC](https://community.hubspot.com/t/azure-ad-admin-consent/42480/2 "2021-08-18T15:29:50Z")

</div>

@johnelmer

Any chance you could lend a hand?

---

<div class="post-metadata">

**Author:** ![johnelmer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johnelmer/32/55984_2.png) [@johnelmer](https://community.hubspot.com/u/johnelmer)\
**Post date:** [August 19, 2021, 9:50pm UTC](https://community.hubspot.com/t/azure-ad-admin-consent/42480/3 "2021-08-19T21:50:25Z")

</div>

@dennisedson @KKorhonen It looks like [this post](https://community.hubspot.com/t5/APIs-Integrations/Does-application-support-Microsoft-Admin-consent-framework/m-p/233601#M12497) addresses the issue.
