(CFACT-59) Add id and gid facts

So `if (pwd_ptr == nullptr)` ?