ErrorCode: {
    cannotSpecifyParentIdWithUsers: "cannot_specify_parent_id_with_users";
    incorrectOrganizationRole: "incorrect_organization_role";
    invalidHierarchy: "invalid_hierarchy";
    isOrganizationLastOwner: "organization_last_owner";
    isOrganizationNotNormal: "organization_not_normal";
    ownerIdIsNotExistingUser: "owner_id_is_not_existing_user";
    userCannotChangeFromOwner: "user_cannot_change_from_owner";
    userNotAllowedUpdateOwnerWithSameName: "user_not_allowed_create_organization";
} = ...

Error codes for the organization service

Type declaration

  • Readonly cannotSpecifyParentIdWithUsers: "cannot_specify_parent_id_with_users"

    Cannot specify parentId for an org if it has users

  • Readonly incorrectOrganizationRole: "incorrect_organization_role"

    User does not have the correct role for this action

  • Readonly invalidHierarchy: "invalid_hierarchy"

    Cannot perform operation as it results in an invalid hierarchy

  • Readonly isOrganizationLastOwner: "organization_last_owner"

    User is the final owner on this organization and so cannot be removed

  • Readonly isOrganizationNotNormal: "organization_not_normal"

    Organization status is locked or otherwise unusable status

  • Readonly ownerIdIsNotExistingUser: "owner_id_is_not_existing_user"

    Owner of organization does not exist as a user

  • Readonly userCannotChangeFromOwner: "user_cannot_change_from_owner"

    User cannot change their own role away from owner

  • Readonly userNotAllowedUpdateOwnerWithSameName: "user_not_allowed_create_organization"

    User already has an organization with this name

Generated using TypeDoc