list_iam_policy_assignments_for_user
(**kwargs)¶Lists all 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'
)
[REQUIRED]
The ID of the Amazon Web Services account that contains the assignments.
[REQUIRED]
The name of the user.
[REQUIRED]
The namespace of the assignment.
dict
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