Synchronizes the information about a single user account in the
Microsoft Dynamics NAV security system with the Microsoft SQL
Server security system.
|
SYNCHRONIZESINGLELOGIN(UserAccount);
|
Parameters
- UserAccount
-
The Windows user account that you want to synchronize. You must
specify a domain and user name, such as 'cronus\simon'.
If you use case-sensitive collations in SQL Server, then the
case of the user account must match the case of the user account in
SQL Server.
Remarks
Example
This example retrieves the SID for a Windows user
account, initializes the ID field based on the SID, inserts the new
account into the Windows Login table, and then synchronizes the new
account. This example requires that you create the following
variables.
Name |
DataType |
Subtype |
Length |
UserAccount
|
Text
|
|
132
|
MyRecord
|
Record
|
Windows Login
|
|
|
Copy Code |
UserAccount := 'cronus\simon';
MyRecord.SID := SID(UserAccount);
MyRecord.CALCFIELDS(MyRecord.ID);
MyRecord.INSERT;
SYNCRONIZESINGLELOGIN(MyRecord.ID);
|
See Also