Log out multiple users - Amazon Chime

End of support notice: On February 20, 2026, AWS will end support for the Amazon Chime service. After February 20, 2026, you will no longer be able to access the Amazon Chime console or Amazon Chime application resources. For more information, visit the blog post. Note: This does not impact the availability of the Amazon Chime SDK service.

Log out multiple users

The following example shows how to log out multiple users from your Amazon Chime administrative account.

ListUsersRequest listUsersRequest = new ListUsersRequest() .withAccountId("chimeAccountId"); ListUsersResult listUsersResult = chime.listUsers(listUsersRequest); for (User user: listUsersResult.getUsers()) { LogoutUserRequest logoutUserRequest = new LogoutUserRequest() .withAccountId(user.getAccountId()) .withUserId(user.getUserId()); chime.logoutUser(logoutUserRequest); }