# Database.SID([Text]) Method
> Version: _Available or changed with runtime version 1.0._
Retrieves the security identifier (SID) of a Windows user account.
> NOTE
> This method is supported only in Business Central on-premises.
## Syntax
```al
SID :=   Database.SID([UserAccount: Text])
```
> NOTE
> This method can be invoked without specifying the data type name.
## Parameters
*[Optional] UserAccount*
Type: ../text/text-data-type
The Windows user account for which you want to get the SID. You must specify a domain and user name, such as 'cronus\\simon'.
## Return Value
SID
Type: ../text/text-data-type
The SID of the specified Windows user account.
## Remarks
If you create a page for adding Windows logins, then you must use the SID method to retrieve the SID for the user account so that you can enter the new login into the Windows Login table.
This method runs only on the computer that is running Dynamics 365 Business Central service. If you call this method from the client computer, then no action occurs.
## Example
```al
var
    NewSID: Text[119];
    UserAccount: Text[132];
begin
    UserAccount := 'cronus\simon';
    NewSID := SID(UserAccount);
end;
```
## Related information
database-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/database/database-sid-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/database/database-sid-method/
