use of com.amazonaws.services.cognitoidentityprovider.model.AdminCreateUserRequest in project aws-sdk-android by aws-amplify.
the class AWSMobileClientTest method createUserViaAdminAPI.
private static void createUserViaAdminAPI(final String userpoolId, final String username, final String email) {
AdminCreateUserRequest request = new AdminCreateUserRequest().withUsername(username).withTemporaryPassword(TEMP_PASSWORD).withUserPoolId(userpoolId).withMessageAction(MessageActionType.SUPPRESS).withForceAliasCreation(true).withUserAttributes(new AttributeType().withName("email").withValue(email), new AttributeType().withName("email_verified").withValue("true"));
getUserpoolLL().adminCreateUser(request);
}
Aggregations