Access Denied using DetectDocumentTextAsync in C#


I've read other posts regarding access denied errors, and either they are mysteriously marked answered or the user is instructed to use another region.
I have already verified that the iam user has the AmazonTextractFullAccess policy attached, and I've tried from both us-east-1 and eu-west-1. I am able to use preview from console with this user without issue.

The exception message is:
ex.Message = "User: arn:aws:iam::????????????:user/???????? is not authorized to perform: textract:DetectDocumentText with an explicit deny"

User details have been redacted.

Any assistance would be appreciated.

已提問 5 年前檢視次數 582 次
1 個回答

Following up. After wasting someones time at AWS, we found that there is likely an explicit deny of the tesseract service on the user I was using. While this didn't appear in the console, it did cause issues using the api from c#.

Setting up a new user with only textract full access attached resolved my issue.

已回答 5 年前

您尚未登入。 登入 去張貼答案。