if I know the login in user ID, how do I get his identity?
I wished Aras would have a standard function for this common task. But they haven´t. You have to do this with AML:
// Get user Alias Identity
Item alias = inn.newItem("Alias","get");
alias = alias.apply();
string identity = alias.getProperty("related_id");