Help Center/ Content Delivery Network/ FAQs/ Usage/ Why Is the Error Message Indicating Failed to Obtain the Domain ID Displayed When an IAM User Calls an API After the Enterprise Project Function Is Enabled?
Updated on 2023-11-17 GMT+08:00

Why Is the Error Message Indicating Failed to Obtain the Domain ID Displayed When an IAM User Calls an API After the Enterprise Project Function Is Enabled?

The account administrator grants only the permissions of an enterprise project to the IAM user, so the IAM user cannot obtain the domain ID of the account, and the following error message is displayed when the IAM user calls an API.

Or

In this case, log in to the console as the account administrator and obtain the domain ID of the account. Carry the parameter domainId when calling an API as the IAM user.