Get the system user from the UserCache
Retrieves the "System" user from MemberJunction's UserCache. This user is typically used for CLI operations where no specific user context exists. The System user must have the Developer role to perform metadata sync operations.
The System UserInfo object
Error if System user is not found in the cache or doesn't have Developer role
const systemUser = getSystemUser();const syncEngine = new SyncEngine(systemUser); Copy
const systemUser = getSystemUser();const syncEngine = new SyncEngine(systemUser);
Get the system user from the UserCache
Retrieves the "System" user from MemberJunction's UserCache. This user is typically used for CLI operations where no specific user context exists. The System user must have the Developer role to perform metadata sync operations.