Get login user info in Task Form

Hi ,

I want to know whether it’s possible to get login user info displayed in user task form. Like User Full name , Groups and email id displayed automatically when the form is loaded.

Thanks
Ajr

Hi,

You could use some custom java script…

Heres a link below to how to get the userId

(link)

Once you have the userId you could call the REST API to get the user profile and groups etc. To do this you will need to provide custom javascript in the form and use the form lifecycle hooks.

regards

Rob

1 Like

Hi ,

Thanks for the reply.

I got the solution

var userId = $rootScope.authentication.name;
$http.get(Uri.appUri(“engine://engine/:engine/user/” + userId + “/profile”)).success(function(result){
$scope.requestor = result.firstName+" "+result.lastName;

Hope it also help others too…

Thanks
Ajr

1 Like

Where do I enter this code?