iya-sts
    Preparing search index...
    setDisabled: (who: string, disabled: boolean, opts?: any) => AccountAct = ...

    Type Declaration

      • (who: string, disabled: boolean, opts?: any): AccountAct
      • Disables or enables an account: the administrator's act from the console or the management API.

        Disabling writes the lock, ends everything the person holds, writes one audit row and mails the person a security notice. Enabling clears the lock and ends nothing.

        Parameters

        • who: string

          the person's name

        • disabled: boolean

          true to disable, false to enable

        • Optionalopts: any

          actor, via (console or api), door, reason, riscReason, by and initiatingEntity

        Returns AccountAct

        the outcome, with changed false when the account was already in that state; a refusal carries ok: false and errors