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
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);
}