FGenericPlatformMisc::GetLoginId

Returns a unique string associated with the login account of the current machine.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h

Include

#include "GenericPlatform/GenericPlatformMisc.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp

Syntax

static FString GetLoginId()

Remarks

Returns a unique string associated with the login account of the current machine. Implemented using persistent storage like the registry on window (using HKCU), so is susceptible to anything that could reset or revert that storage if the ID is created, which is generally during install or first run of the app.

Note: This is NOT a user or machine fingerprint, as multiple logins on the same machine will not share the same ID, and it is not based on the hardware of the user. It is completely random and non-identifiable.

Returns

a string containing the LoginID, or empty if not available.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss