list_application_assignments_for_principal
¶
list_application_assignments_for_principal(
instance_arn: InstanceArn,
principal_id: PrincipalId,
principal_type: PrincipalType,
*,
config_overrides: Optional[SSOAdminClientConfig] = None,
filter: Optional[ListApplicationAssignmentsFilter] = None,
next_token: Optional[Token] = None,
max_results: Optional[MaxResults] = None,
) -> ListApplicationAssignmentsForPrincipalResponse
Lists the applications to which a specified principal is assigned. You must provide a filter when calling this action from a member account against your organization instance of IAM Identity Center. A filter is not required when called from the management account against an organization instance of IAM Identity Center, or from a member account against an account instance of IAM Identity Center in the same account.
Parameters:
-
instance_arn(InstanceArn) –Specifies the instance of IAM Identity Center that contains principal and applications.
-
principal_id(PrincipalId) –Specifies the unique identifier of the principal for which you want to retrieve its assignments.
-
principal_type(PrincipalType) –Specifies the type of the principal for which you want to retrieve its assignments.
-
filter(Optional[ListApplicationAssignmentsFilter], default:None) –Filters the output to include only assignments associated with the application that has the specified ARN.
-
next_token(Optional[Token], default:None) –Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextTokenresponse to request the next page of results. -
max_results(Optional[MaxResults], default:None) –Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the
NextTokenresponse element is returned with a value (not null). Include the specified value as theNextTokenrequest parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextTokenafter every operation to ensure that you receive all of the results.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception, or failure with an internal server.
-
ResourceNotFoundException–Indicates that a requested resource is not found.
-
ThrottlingException–Indicates that the principal has crossed the throttling limits of the API operations.
-
ValidationException–The request failed because it contains a syntax error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sso_admin/_services/sso_admin.py
2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 | |