Shridhar,
Your search filter is wrong..
This is all based on AD and LDAP.
Windows AD: (&(objectCategory=Person)(objectClass=User)(sAMAccountName=$LoggedinUser$))
LDAP: (&(objectCategory=Person)(objectClass=User)(uid=$LoggedinUser$))
Then the item to pull from the user information (Case sensitive):
department
location
etc..
Good Luck