---
title: "getUserId Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.runtimeconfiguration.getuserid.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/).

# getUserId Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- getUserId( ) :  Promise &lt; string &gt;

- Reads ID of the user working on the product.
  
 - example
     - ```
    CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition)
        .then((editor) => {
            editor.configuration.getUserId()
                .then(id => console.log("The current user ID is " + id))
        })
        .catch(e => console.log(e));
    ```

#### Returns Promise &lt; string &gt;
 
    The user identifier.
