Logged in user-id for task-form-javascript

Hi everybody,

I summed up the solution from here: How to pass variable value in a form

<form name="startProcess">
    <script cam-script type="text/form-script">
	inject([ '$rootScope', '$scope', function($rootScope, $scope) {
        camForm.on('variables-fetched', function() {
		  $scope.userName = $rootScope.authentication.name;
		});
	}]);
</script>
    <div class="form-group">
        <label for="client">User name</label>
        <input cam-variable-name="client"
               cam-variable-type="String"
               type="text"
               name="client"
               required
               class="form-control"
               ng-model="userName"
               readonly="true"
        />
    </div>
</form>