# Class AgentUserStatusCodes

- [TopLevel.Object](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md)
  - [dw.customer.AgentUserStatusCodes](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.AgentUserStatusCodes.md)

AgentUserStatusCodes contains constants representing status codes that can be
used with a [Status](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.system.Status.md) object to indicate the success or failure of the agent
user login process.

**See Also:**

- [Status](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.system.Status.md)

## All Known Subclasses

[AgentUserStatusCodes](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.system.AgentUserStatusCodes.md)

## Constant Summary

| Constant                                                                                                                                                               | Description                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [AGENT_USER_NOT_AVAILABLE](#agent_user_not_available): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "AGENT_USER_NOT_AVAILABLE" | Indicates that the agent user is not available.                                                                                                 |
| [AGENT_USER_NOT_LOGGED_IN](#agent_user_not_logged_in): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "AGENT_USER_NOT_LOGGED_IN" | Indicates that the agent user is not logged in.                                                                                                 |
| [CREDENTIALS_INVALID](#credentials_invalid): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "CREDENTIALS_INVALID"                | Indicates that the given agent user login or password was wrong.                                                                                |
| [CUSTOMER_DISABLED](#customer_disabled): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "CUSTOMER_DISABLED"                      | Indicates that the customer is disabled.                                                                                                        |
| [CUSTOMER_UNREGISTERED](#customer_unregistered): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "CUSTOMER_UNREGISTERED"          | Indicates that the customer is either not registered or not registered with the current site.                                                   |
| [INSECURE_CONNECTION](#insecure_connection): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "INSECURE_CONNECTION"                | Indicates that the current connection is not secure (HTTP instead of HTTPS)  and the server is configured to require a secure connection.       |
| [INSUFFICIENT_PERMISSION](#insufficient_permission): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "INSUFFICIENT_PERMISSION"    | Indicates that the given agent user does not have the permission  'Login_Agent' which is required to login to the storefront as an agent  user. |
| [LOGIN_SUCCESSFUL](#login_successful): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "LOGIN_SUCCESSFUL"                         | Indicates that the agent user login was successful.                                                                                             |
| [NO_STOREFRONT](#no_storefront): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "NO_STOREFRONT"                                  | Indicates that the current context is not a storefront request.                                                                                 |
| [PASSWORD_EXPIRED](#password_expired): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "PASSWORD_EXPIRED"                         | Indicates that the given agent user password has expired and needs to be  changed in the Business Manager.                                      |
| [USER_DISABLED](#user_disabled): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "USER_DISABLED"                                  | Indicates that the agent user account has been disabled in the Business  Manager.                                                               |
| [USER_LOCKED](#user_locked): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "USER_LOCKED"                                        | Indicates that the agent user account is locked, because the maximum  number of failed login attempts was exceeded.                             |

## Constructor Summary

| Constructor                                     | Description |
| ----------------------------------------------- | ----------- |
| [AgentUserStatusCodes](#agentuserstatuscodes)() |             |

## Method Summary

### Methods inherited from class Object

[assign](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#assignobject-object), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject-object), [defineProperties](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertiesobject-object), [defineProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertyobject-object-object), [entries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#entriesobject), [freeze](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#freezeobject), [fromEntries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#fromentriesiterable), [getOwnPropertyDescriptor](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertydescriptorobject-object), [getOwnPropertyNames](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertynamesobject), [getOwnPropertySymbols](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertysymbolsobject), [getPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getprototypeofobject), [hasOwnProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#hasownpropertystring), [is](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isobject-object), [isExtensible](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isextensibleobject), [isFrozen](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isfrozenobject), [isPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isprototypeofobject), [isSealed](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#issealedobject), [keys](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#keysobject), [preventExtensions](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#preventextensionsobject), [propertyIsEnumerable](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#propertyisenumerablestring), [seal](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#sealobject), [setPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#setprototypeofobject-object), [toLocaleString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tolocalestring), [toString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tostring), [valueOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valueof), [values](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valuesobject)

## Constant Details

### AGENT_USER_NOT_AVAILABLE

- AGENT_USER_NOT_AVAILABLE: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "AGENT_USER_NOT_AVAILABLE"
  - : Indicates that the agent user is not available.

***

### AGENT_USER_NOT_LOGGED_IN

- AGENT_USER_NOT_LOGGED_IN: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "AGENT_USER_NOT_LOGGED_IN"
  - : Indicates that the agent user is not logged in.

***

### CREDENTIALS_INVALID

- CREDENTIALS_INVALID: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "CREDENTIALS_INVALID"
  - : Indicates that the given agent user login or password was wrong.

***

### CUSTOMER_DISABLED

- CUSTOMER_DISABLED: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "CUSTOMER_DISABLED"
  - : Indicates that the customer is disabled.

***

### CUSTOMER_UNREGISTERED

- CUSTOMER_UNREGISTERED: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "CUSTOMER_UNREGISTERED"
  - : Indicates that the customer is either not registered or not registered with the current site.

***

### INSECURE_CONNECTION

- INSECURE_CONNECTION: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "INSECURE_CONNECTION"
  - : Indicates that the current connection is not secure (HTTP instead of HTTPS)
    and the server is configured to require a secure connection.

***

### INSUFFICIENT_PERMISSION

- INSUFFICIENT_PERMISSION: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "INSUFFICIENT_PERMISSION"
  - : Indicates that the given agent user does not have the permission
    'Login_Agent' which is required to login to the storefront as an agent
    user.

***

### LOGIN_SUCCESSFUL

- LOGIN_SUCCESSFUL: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "LOGIN_SUCCESSFUL"
  - : Indicates that the agent user login was successful.

***

### NO_STOREFRONT

- NO_STOREFRONT: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "NO_STOREFRONT"
  - : Indicates that the current context is not a storefront request.

***

### PASSWORD_EXPIRED

- PASSWORD_EXPIRED: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "PASSWORD_EXPIRED"
  - : Indicates that the given agent user password has expired and needs to be
    changed in the Business Manager.

***

### USER_DISABLED

- USER_DISABLED: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "USER_DISABLED"
  - : Indicates that the agent user account has been disabled in the Business
    Manager.

***

### USER_LOCKED

- USER_LOCKED: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) = "USER_LOCKED"
  - : Indicates that the agent user account is locked, because the maximum
    number of failed login attempts was exceeded.

***

## Constructor Details

### AgentUserStatusCodes()

- AgentUserStatusCodes()
  - :

***
