'Return the current user name.'

@hybrid_property
def name(self):

    if self.local_user:
        return self.local_user.name
    elif self.nonlocal_user:
        return self.nonlocal_user.name
    elif self.federated_users:
        return self.federated_users[0].display_name
    else:
        return None
