Chime / Client / batch_suspend_user
batch_suspend_user#
- Chime.Client.batch_suspend_user(**kwargs)#
- Suspends up to 50 users from a - Teamor- EnterpriseLWAAmazon Chime account. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.- Users suspended from a - Teamaccount are disassociated from the account,but they can continue to use Amazon Chime as free users. To remove the suspension from suspended- Teamaccount users, invite them to the- Teamaccount again. You can use the InviteUsers action to do so.- Users suspended from an - EnterpriseLWAaccount are immediately signed out of Amazon Chime and can no longer sign in. To remove the suspension from suspended- EnterpriseLWAaccount users, use the BatchUnsuspendUser action.- To sign out users without suspending them, use the LogoutUser action. - See also: AWS API Documentation - Request Syntax- response = client.batch_suspend_user( AccountId='string', UserIdList=[ 'string', ] ) - Parameters:
- AccountId (string) – - [REQUIRED] - The Amazon Chime account ID. 
- UserIdList (list) – - [REQUIRED] - The request containing the user IDs to suspend. - (string) – 
 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'UserErrors': [ { 'UserId': 'string', 'ErrorCode': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist', 'ErrorMessage': 'string' }, ] } - Response Structure- (dict) – - UserErrors (list) – - If the BatchSuspendUser action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages. - (dict) – - The list of errors returned when errors are encountered during the BatchSuspendUser, BatchUnsuspendUser, or BatchUpdateUser actions. This includes user IDs, error codes, and error messages. - UserId (string) – - The user ID for which the action failed. 
- ErrorCode (string) – - The error code. 
- ErrorMessage (string) – - The error message. 
 
 
 
 
 - Exceptions- Chime.Client.exceptions.UnauthorizedClientException
- Chime.Client.exceptions.NotFoundException
- Chime.Client.exceptions.ForbiddenException
- Chime.Client.exceptions.BadRequestException
- Chime.Client.exceptions.ThrottledClientException
- Chime.Client.exceptions.ServiceUnavailableException
- Chime.Client.exceptions.ServiceFailureException