Make the LookupUserAttr functionality compile-time conditional.