# GETUID

Portability Function: Returns the user ID of the calling process.

## Module

USE IFPORT

result = GETUID( )

## Results

The result type is INTEGER(4). The result corresponds to the user identity under which the program is running. The result is returned as follows:

- Linux and macOS

  This function returns the user identity for the current process.

- Windows

  This function returns the last subauthority of the security identifier for the process. This is unique on a local machine and unique within a domain for domain accounts.

  Note that on Windows systems, domain accounts and local accounts can overlap.

## Example

    USE IFPORT
    integer(4) istat
    istat = GETUID( )

Parent topic: G