Find out group ids of current logged in user in a tasklist plugin

Hi at all,

Is there a way to find out the group ids of the current logged in user, when you are in a tasklist plugin?

Something like:

<form role="form">
  <script cam-script type="text/form-script">
    inject(['$rootScope', function($rootScope) {
      $scope.userName = $rootScope.authentication.name;
    }]);
  </script>

  <h1>Greetings {{ userName }}</h1>
</form>

is not working.

Thank you for your help :slight_smile: