private static void SetUserCustomPropertyClaims(IUser user, ClaimsBuilder builder) { foreach (ICustomProperty customProperty in user.CustomProperties.Where(customProperty => customProperty.Value != null)) { builder.AddCustomProperty(customProperty.Name, customProperty.Value); } }