iya-sts
    Preparing search index...
    profileNameFor: (
        username: unknown,
        groupsOf?: () => HeldGroup[],
        application?: unknown,
    ) => string = ...

    Type Declaration

      • (username: unknown, groupsOf?: () => HeldGroup[], application?: unknown): string
      • Returns the name of the profile that reaches a person: of the profile the application signed in to names (appPostLoginPolicy) and the profiles the person's groups name (stsPostLoginPolicy), the lowest precedence (ties by name), else default — PolicySelection.rank() (#1239, rule 3cx). With no application — a question asked of a person outside a sign-in — the groups alone.

        Parameters

        • username: unknown

          the person

        • OptionalgroupsOf: () => HeldGroup[]

          optional; answers the person's groups as personGroups() does, so a caller that needs them too (post_login.ts, for a started activity's groups, #1126) asks the directory once; personGroups() otherwise

        • Optionalapplication: unknown

          optional; the application signed in to (its client_id or identifier)

        Returns string

        the profile name