---
title: "loadUserInfo Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.loaduserinfo.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# loadUserInfo Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- loadUserInfo(data?:  [IUserInfo](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.iuserinfo.htm.md) ) :  Promise &lt; void &gt;

- Populates a product with user data. For details, see the [Working with User Data](https://customerscanvas.com/docs/cc6/working-with-user-data.htm.md) topic.
  
    **Warning!** This method is time-consuming. For optimization, you can populate a product template when it is loading into the editor with [autoLoadUserInfo](https://customerscanvas.com/docs/cc6/working-with-user-data.htm.md) enabled.
 
 - example
     - ```
    var editor = null;
    var data = {
        "Name": "Alex Smith",
        "Position": "Manager",
        "ID": {
            "BarcodeFormat": "EAN_8",
            "BarcodeValue": "1234567"
        }
    };
    
    // Load the web-to-print editor.
    CustomersCanvas.IframeApi.loadEditor(iframe, product, configuration)
        .then(function (e) {
            editor = e;
        });
    ...
    // Populate the product with user data.
    editor.loadUserInfo(data);
    ```

#### Parameters

    - #####  Optional data: [IUserInfo](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.iuserinfo.htm.md) 
  
        An object, which holds key-value pairs. The key is a layer name or an in-string placeholder name without markers and extra symbols. The value is a text or barcode date you want to insert into it. If you omit this parameter, then the userInfo passed to the editor during the initial [loadEditor](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.loadeditor.htm.md) call is used.

#### Returns Promise &lt; void &gt;
