VI_GetPreferredADSAccountForPerson

Searches for the preferred Active Directory user account of an identity. Returns the UID of the user account found. It searches for the first assigned user account with IsPreferredAccount = 1. If no user account is marked as a preferred account, the identity's first user account is determined. If there are no user accounts assigned to the identity, the function returns an empty string.

DialogScriptlength 1356

Script body is not duplicated here; use source exports/search where available.

Script context

Generated from DialogScript metadata, DB-computed ScriptCode flags, and textual references in exported SQL/C# sources. Raw script bodies are not duplicated here.

No DB-computed flags set.

Related tables from name/description

ADSAccount Person

SQL modules mentioning this script

None extracted.

C# files mentioning this script

None extracted.

Similar / same-family scripts

None extracted.