Get a User

Gets a User by ID, Email or Username.

Method Signature

User get(String identifier);

Parameters

ParameterTypeDescription
identifierStringThe ID, Email or Username of the User to get
returnsUserThe User that was requested

Example

/*
 * This example demonstrates getting a User by Email
 */
import org.catalytic.sdk.CatalyticClient;
import org.catalytic.sdk.entities.User;

public class Program {
  
    public static void main(String[] args) throws Exception {
      
        // Create and initialize the Catalytic SDK Client
        CatalyticClient catalytic = new CatalyticClient();
      
      	// Find a user who's email is [email protected]
        User alice = catalytic.users().get("[email protected]");
    }
}