update_user
¶
update_user(
user_name: UserName,
aws_account_id: AwsAccountId,
namespace: Namespace,
email: String,
role: UserRole,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
custom_permissions_name: Optional[RoleName] = None,
unapply_custom_permissions: Optional[Boolean] = None,
external_login_federation_provider_type: Optional[String] = None,
custom_federation_provider_url: Optional[String] = None,
external_login_id: Optional[String] = None,
) -> UpdateUserResponse
Updates an Amazon Quick Sight user.
Parameters:
-
user_name(UserName) –The Amazon Quick Sight user name that you want to update.
-
aws_account_id(AwsAccountId) –The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon Quick Sight account.
-
namespace(Namespace) –The namespace. Currently, you should set this to
default. -
email(String) –The email address of the user that you want to update.
-
role(UserRole) –The Amazon Quick Sight role of the user. The role can be one of the following default security cohorts:
-
READER: A user who has read-only access to dashboards. -
AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. -
ADMIN: A user who is an author, who can also manage Amazon Quick Sight settings. -
READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have access to Amazon Q in Quick Sight, can build stories with Amazon Q, and can generate executive summaries from dashboards. -
AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can author dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for Q&A, and generate executive summaries from dashboards. -
ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon Quick Sight administrative settings. Admin Pro users are billed at Author Pro pricing.
The name of the Quick Sight role is invisible to the user except for the console screens dealing with permissions.
-
-
custom_permissions_name(Optional[RoleName], default:None) –(Enterprise edition only) The name of the custom permissions profile that you want to assign to this user. Customized permissions allows you to control a user's access by restricting access the following operations:
-
Create and update data sources
-
Create and update datasets
-
Create and update email reports
-
Subscribe to email reports
A set of custom permissions includes any combination of these restrictions. Currently, you need to create the profile names for custom permission sets by using the Quick Sight console. Then, you use the
RegisterUserAPI operation to assign the named set of permissions to a Quick Sight user.Quick Sight custom permissions are applied through IAM policies. Therefore, they override the permissions typically granted by assigning Quick Sight users to one of the default security cohorts in Quick Sight (admin, author, reader).
This feature is available only to Quick Sight Enterprise edition subscriptions.
-
-
unapply_custom_permissions(Optional[Boolean], default:None) –A flag that you use to indicate that you want to remove all custom permissions from this user. Using this parameter resets the user to the state it was in before a custom permissions profile was applied. This parameter defaults to NULL and it doesn't accept any other value.
-
external_login_federation_provider_type(Optional[String], default:None) –The type of supported external login provider that provides identity to let a user federate into Quick Sight with an associated Identity and Access Management(IAM) role. The type of supported external login provider can be one of the following.
-
COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. When choosing theCOGNITOprovider type, don’t use the "CustomFederationProviderUrl" parameter which is only needed when the external provider is custom. -
CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider. When choosingCUSTOM_OIDCtype, use theCustomFederationProviderUrlparameter to provide the custom OIDC provider URL. -
NONE: This clears all the previously saved external login information for a user. Use theDescribeUserAPI operation to check the external login information.
-
-
custom_federation_provider_url(Optional[String], default:None) –The URL of the custom OpenID Connect (OIDC) provider that provides identity to let a user federate into Quick Sight with an associated Identity and Access Management(IAM) role. This parameter should only be used when
ExternalLoginFederationProviderTypeparameter is set toCUSTOM_OIDC. -
external_login_id(Optional[String], default:None) –The identity ID for a user in the external login provider.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
PreconditionNotMetException–One or more preconditions aren't met.
-
ResourceNotFoundException–One or more resources can't be found.
-
ResourceUnavailableException–This resource is currently unavailable.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 | |