iya-sts
    Preparing search index...
    set: (
        username: unknown,
        given: Record<string, any>,
        opts?: { caller?: string },
    ) =>
        | Refusal
        | {
            account: ServiceAccountFacts;
            changed: boolean;
            ok: boolean;
            username: any;
        } = ...

    Type Declaration

      • (
            username: unknown,
            given: Record<string, any>,
            opts?: { caller?: string },
        ):
            | Refusal
            | {
                account: ServiceAccountFacts;
                changed: boolean;
                ok: boolean;
                username: any;
            }
      • Makes a person a service account, or changes one. A service account is never made a person again (rcbj, 2026-11-15): serviceAccount false on one is refused, STS-SVCACCT-0060; on an ordinary person it changes nothing. Deleting the entry is the only way an account ends. owners — the WHOLE list, which replaces what the account names; each a DN, username or group name, at least one while the policy's requireOwner is on (#600) — and destination (an application entry's DN) with secretName, both or neither. On a service account the owners may not become none, nor may the caller take themselves off (ownerChangeRefusal()).

        Parameters

        • username: unknown

          the person

        • given: Record<string, any>

          serviceAccount, owners, destination, secretName

        • Optionalopts: { caller?: string }

          caller, the username of the person asking, from the verified token and never from a request body; absent for nobody known

        Returns
            | Refusal
            | {
                account: ServiceAccountFacts;
                changed: boolean;
                ok: boolean;
                username: any;
            }

        { ok: true, account, changed }, or a refusal with a code