You must be an Amazon Chime system administrator to complete the steps in this guide. If you need help with the Amazon Chime desktop client, web app, or mobile app, see Getting support in the Amazon Chime User Guide.
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); }