Chime / Client / batch_suspend_user
batch_suspend_user#
- Chime.Client.batch_suspend_user(**kwargs)#
Suspends up to 50 users from a
Team
orEnterpriseLWA
Amazon 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
Team
account are disassociated from the account,but they can continue to use Amazon Chime as free users. To remove the suspension from suspendedTeam
account users, invite them to theTeam
account again. You can use the InviteUsers action to do so.Users suspended from an
EnterpriseLWA
account are immediately signed out of Amazon Chime and can no longer sign in. To remove the suspension from suspendedEnterpriseLWA
account 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