I’m new to QuickSight and have been trying to register a new user via the API.
Using the console our users can register themselves as admins using our IAM SSO logins fine. However when I try to replicate this using the API to create a reader I get an error:
An error occurred (InvalidParameterValueException) when calling the RegisterUser operation: Invalid resource identifiers provided. Please check the documentation.
I’m assuming it’s an issue with the --iam-arn and I’ve not quite used the right format.
For the admin users that have been created, listing users gives their ARNs with this format: arn:aws:quicksight:eu-west-2:999999999999:user/default/AWSReservedSSO_ROLENAME_xxxxxxxxxxxxxxxx/User.Name
So I tried that, and also arn:aws:sts::999999999999:user/default/AWSReservedSSO_ROLENAME_xxxxxxxxxxxxxxxx/User.Name but still get the same message.
Many thanks Duncan. I tried that just now, using all three variants with “–session-name xxxx” but the error message was the same as before for all of them.
Many thanks @duncan that was very helpful! After a little more experimentation the thing I needed to do was use the ARN of the role, not the user, and the user name as the session name. So for my original example, where I’ve already created the user “User.Name” and given it access to role “ROLENAME”, this command creates the QuickSight user:
When I then login to the console as that SSO user and navigate to QuickSight it doesn’t create another user, but gives me an empty dashboard for the SSO user, exactly as I’d hoped
Thanks again for pointing me in the right direction!