QuickSight / Client / list_iam_policy_assignments_for_user
list_iam_policy_assignments_for_user#
- QuickSight.Client.list_iam_policy_assignments_for_user(**kwargs)#
Lists all of the IAM policy assignments, including the Amazon Resource Names (ARNs), for the IAM policies assigned to the specified user and group, or groups that the user belongs to.
See also: AWS API Documentation
Request Syntax
response = client.list_iam_policy_assignments_for_user( AwsAccountId='string', UserName='string', NextToken='string', MaxResults=123, Namespace='string' )
- Parameters:
AwsAccountId (string) –
[REQUIRED]
The ID of the Amazon Web Services account that contains the assignments.
UserName (string) –
[REQUIRED]
The name of the user.
NextToken (string) – The token for the next set of results, or null if there are no more results.
MaxResults (integer) – The maximum number of results to be returned per request.
Namespace (string) –
[REQUIRED]
The namespace of the assignment.
- Return type:
dict
- Returns:
Response Syntax
{ 'ActiveAssignments': [ { 'AssignmentName': 'string', 'PolicyArn': 'string' }, ], 'RequestId': 'string', 'NextToken': 'string', 'Status': 123 }
Response Structure
(dict) –
ActiveAssignments (list) –
The active assignments for this user.
(dict) –
The active Identity and Access Management (IAM) policy assignment.
AssignmentName (string) –
A name for the IAM policy assignment.
PolicyArn (string) –
The Amazon Resource Name (ARN) of the resource.
RequestId (string) –
The Amazon Web Services request ID for this operation.
NextToken (string) –
The token for the next set of results, or null if there are no more results.
Status (integer) –
The HTTP status of the request.
Exceptions
QuickSight.Client.exceptions.AccessDeniedException
QuickSight.Client.exceptions.InvalidParameterValueException
QuickSight.Client.exceptions.ResourceExistsException
QuickSight.Client.exceptions.ResourceNotFoundException
QuickSight.Client.exceptions.ThrottlingException
QuickSight.Client.exceptions.ConcurrentUpdatingException
QuickSight.Client.exceptions.InternalFailureException