# Keyless authentication for Document AI on a local Mac

**URL:** <https://discuss.google.dev/t/keyless-authentication-for-document-ai-on-a-local-mac/410773>\
**Category:** Cloud Foundations & Onboarding\
**Tags:** troubleshooting\
**Created:** [November 3, 2026, 4:36pm UTC](https://discuss.google.dev/t/keyless-authentication-for-document-ai-on-a-local-mac/410773 "2026-11-03T16:36:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iang\_LNU](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/iang_lnu/32/287207_2.png) [@iang\_LNU](https://discuss.google.dev/u/iang_LNU)\
**Post date:** [November 3, 2026, 4:36pm UTC](https://discuss.google.dev/t/keyless-authentication-for-document-ai-on-a-local-mac/410773/1 "2026-11-03T16:36:35Z")

</div>

Hi,

We’re testing Google Document AI OCR from a local Apple Silicon Mac.

Our EU OCR processor works through the Google Cloud console. We have also created a service account with the **Document AI API User** role.

However, creating a JSON key is blocked by **`iam.disableServiceAccountKeyCreation`**. We would prefer to keep that security policy enabled.

We want our local application to submit 46 document images automatically and save the OCR results locally.

What is the simplest recommended **keyless authentication** method? Would Application Default Credentials with service-account impersonation be appropriate?

Please could someone explain the setup steps and minimum IAM permissions required? We’re currently using a Google Cloud free-trial account.

Cheers,

Ian
