sid_to_uid

Use the sid_to_uid command to specify a security identifier (SID) of an Active Directory user to look up the Active Directory user in Active Directory. This command converts the user’s security identifier to a numeric identifier for the user ID (the UID value). This conversion process is the same process used to generate UIDs for Centrify Express users or when you use Auto Zone to automatically generate UIDs for users.

Zone type

Not applicable

Syntax

sid_to_uid [-domainidmap] sid

Abbreviation

stu

Options

This command takes the following options:

Option Description  
-domainidmap

Optional. Specifies a domain ID mapping for the selected zone. Before using this field, you must have a selected zone stored in memory. This field is not supported for auto zones nor classic zones.

If the selected zone does not already have a domain ID mapping, the UID is generated normally.

If the selected zone has a domain ID mapping already and the domain to which this SID belongs exists in the specified domain ID mapping, the UID is generated with the algorithm based on the domain ID mapping.

If the selected zone has a domain ID mapping already but the domain to which this SID belongs does not exist in the specified domain ID mapping, the UID is generated normally.

For example:

sid_to_uid -domainidmap S-1-5-21-2076040321-3326545908-468068287-1157

 

Arguments

This command takes the following argument:

Argument Type Description

sid

string

Required. Specifies a security identifier (SID).

Return value

This command returns a numeric user ID.

Examples

This example returns a unique UID for the user: 1874853888

Related commands

The following commands perform actions related to this command:

  • principal_from_sid searches Active Directory for an SID and returns the security principal associated with the SID.