guid_to_id
Use the guid_to_id
command to specify a globally unique identifier (GUID) for a user or group and returns a UID or GID that uses the Apple methodology for automatically generated unique identifiers.
Zone type
Not applicable
Syntax
guid_to_id guid
Abbreviation
None.
Options
This command takes no options.
Arguments
This command takes the following argument:
Argument | Type | Description |
guid |
string |
Required. Specifies the globally unique identifier for a user or group. |
Return value
This command returns UID or GID for the user or group generated using the Apple mechanism for automatically generating identifiers.
Examples
guid_to_id 763ddbc8-44cc-4a79-83aa-abc899b46aba
This example returns the UID for the user associated with the specified globally unique identifier:
1983765448
Related commands
The following command performs actions related to this command:
- principal_to_id returns a unique UID or GID based on either the Apple methodology or the Centrify Auto Zone methodology for generating numeric identifiers.
- sid_to_uid converts a user’s security identifier to a numeric identifier (UID).