Returned when an Associate is missing a Permission on a B2B resource.

interface AssociateMissingPermissionError {
    associate: CustomerResourceIdentifier;
    associateOnBehalf?: CustomerResourceIdentifier;
    businessUnit: BusinessUnitResourceIdentifier;
    code: "AssociateMissingPermission";
    message: string;
    permissions: string[];
    [key: string]: any;
}

Indexable

[key: string]: any

Properties

ResourceIdentifier to the Associate that tried to perform the action.

associateOnBehalf?: CustomerResourceIdentifier

ResourceIdentifier of the Associate on whose behalf the action is performed.

code: "AssociateMissingPermission"
message: string
  • When an action is performed by an Associate: "Associate '$idOfAssociate' has no rights to $action in business-unit '$idOrKeyOfBusinessUnit'. Needs '$requiredPermission'."
    • When an action is performed for another Associate, like viewing their Cart: "Associate '$idOfAssociate' has no rights to $action for customer '$idOfCustomer' in business-unit '$idOrKeyOfBusinessUnit'. Needs '$requiredPermission'."
    • When viewing an entity: "Associate '$idOfAssociate' has no rights to $action in business-unit '$idOrKeyOfBusinessUnit'. Needs '$requiredViewMyPermission' or '$requiredViewOthersPermission'."
permissions: string[]

The Permissions that the Associate performing the action lacks. At least one of these Permissions is needed.

Generated using TypeDoc