I got my Quicksight User deleted but i want those orphaned resources by deleted users to a new user, i have followed AWS blog , but it does not seem to be working
aws quicksight update-analysis-permissions --aws-account-id 551127968046 --analysis-id 0199ee60-edea-49a5-b927-96b11e11f916 --grant-permissions Principal=arn:aws:quicksight:us-east-1:551127968046:user/khushahal.trivedi@domain.com,Actions=quicksight:RestoreAnalysis,quicksight:UpdateAnalysisPermissions,quicksight:DeleteAnalysis,quicksight:DescribeAnalysisPermissions,quicksight:QueryAnalysis,quicksight:DescribeAnalysis,quicksight:UpdateAnalysis --region 'us-east-1'
An error occurred (ResourceNotFoundException) when calling the UpdateAnalysisPermissions operation: Analysis arn:aws:quicksight:us-east-1:551127968046:analysis/0199ee60-edea-49a5-b927-96b11e11f916 is not found
And When we list we get the DELETED status of that resource as follows
An error occurred (InvalidParameterValueException) when calling the UpdateAnalysisPermissions operation: Invalid principals given [arn:aws:quicksight:us-east-1:551127968046:user/userid].
But userid present and account ID is also correct can you please let me know whats wrong in principal