---
title: "loadUserInfo Method"
canonical: https://customerscanvas.com/docs/cc4/customerscanvas.iframeapi.editor.loaduserinfo.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["4.4.25", "4.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 4.4.25, 4.x (may differ) · **Archived documentation**
 
### Callable
 
- loadUserInfo(data?:  [IUserInfo](https://customerscanvas.com/docs/cc4/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/cc4/working-with-user-data.htm.md) topic.
  
 - 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/cc4/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/cc4/customerscanvas.iframeapi.loadeditor.htm.md) call is used.

#### Returns Promise &lt; void &gt;
