Getting custom user attributes in a service, they return NULL
Here's some code that should return categories related to a user:

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Category);
$criteria-&gt;relatedTo = craft()-&gt;userSession-&gt;getUser();

return craft()-&gt;elements-&gt;findElements($criteria);