This section describes how you can use Identity and Access Management (IAM) for fine-grained permissions management of your OCR resources. If your account does not need individual IAM users, you may skip over this section.
New IAM users do not have any permissions by default. You need to add them to one or more groups and assign policies or roles to these groups. Users inherit permissions from the groups. Users then can perform specified operations on cloud services based on the permissions they have been granted.
You can grant permissions using roles and policies. Roles are a type of service-based, coarse-grained authorization mechanism provided by IAM to define permissions that match user responsibilities. Policies are more fine-grained, API-based permissions required to perform operations on specific cloud resources under certain conditions, meeting requirements for secure access control.
If you want to allow or deny the access to an API, use policy-based authorization.
An account has full permissions to call all APIs, but IAM users under the account must be granted the required permissions to make successful API calls. The permissions required for calling an API are determined by the actions supported by the API. Only users with granted permissions can call the API successfully.
OCR provides system-defined policies that can be directly used in IAM. You can also create custom policies to supplement system-defined policies for more refined access control. Actions supported by policies are specific to APIs. The following are common concepts related to actions:
√: supported; x: not supported
Permission |
API |
Action |
IAM Project (Project) |
Enterprise Project (Enterprise Project) |
|---|---|---|---|---|
Subscribing to General Text OCR |
x |
ocr:generalText:subscribe |
√ |
x |
Unsubscribing from General Text OCR |
x |
ocr:generalText:unsubscribe |
√ |
x |
Listing the users who have subscribed to General Text OCR |
x |
ocr:generalText:getSubscribeUserList |
√ |
x |
Subscribing to General Text OCR for other IAM users |
x |
ocr:generalText:subscribeAllUsers |
√ |
x |
Unsubscribing from General Text OCR for other IAM users |
x |
ocr:generalText:unsubscribeAllUsers |
√ |
x |
Subscribing to General Table OCR |
x |
ocr:generalTable:subscribe |
√ |
x |
Unsubscribing from General Table OCR |
x |
ocr:generalTable:unsubscribe |
√ |
x |
Listing the users who have subscribed to General Table OCR |
x |
ocr:generalTable:getSubscribeUserList |
√ |
x |
Subscribing to General Table OCR for other IAM users |
x |
ocr:generalTable:subscribeAllUsers |
√ |
x |
Unsubscribing from General Table OCR for other IAM users |
x |
ocr:generalTable:unsubscribeAllUsers |
√ |
x |
Subscribing to Smart Document Recognizer |
x |
ocr:smartDocumentRecognizer:subscribe |
√ |
x |
Unsubscribing from Smart Document Recognizer |
x |
ocr:smartDocumentRecognizer:unsubscribe |
√ |
x |
Listing the users who have subscribed to Smart Document Recognizer |
x |
ocr:smartDocumentRecognizer:getSubscribeUserList |
√ |
x |
Subscribing to Smart Document Recognizer for other IAM users |
x |
ocr:smartDocumentRecognizer:subscribeAllUsers |
√ |
x |
Unsubscribing from Smart Document Recognizer for other IAM users |
x |
ocr:smartDocumentRecognizer:unsubscribeAllUsers |
√ |
x |