Sep 20, 2024
Assign multiple userIDs
Assigns multiple user IDs to a cluster.
You can’t move users with this operation.
Usage
Requires
Admin API key
Copy
1
2
3
4
5
6
import com.algolia.api.SearchClient;
import com.algolia.model.search.*;
SearchClient client = new SearchClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY");
client.batchAssignUserIds("userID", new BatchAssignUserIdsParams().setCluster("theCluster").setUsers(Arrays.asList("user1", "user2")));
Did you find this page helpful?