No permission when use boto3 to create datasets

I created an IAM user and give all quicksight:* permission to that user.

I can use the credential to successfully call list-data-sets api by boto3

But when comes to create datasets, it show the error : botocore.errorfactory.AccessDeniedException: An error occurred (AccessDeniedException) when calling the CreateDataSet operation: User: arn:*** is not authorized to access this resource

Don’t have a clue about what happened.

The script is actually run through in another aws account.

Hi,

try this.

regards,
Naveed Ali